[UNIX] IBM AIX chcod Local Privilege Escalation Vulnerability
From: SecuriTeam (support_at_securiteam.com)
Date: 12/21/04
- Previous message: SecuriTeam: "[UNIX] libkadm5srv Heap Buffer Overflow"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: list@securiteam.com Date: 21 Dec 2004 13:02:47 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
IBM AIX chcod Local Privilege Escalation Vulnerability
------------------------------------------------------------------------
SUMMARY
The chcod program is "a setuid root application, installed by default
under newer versions of IBM AIX, that manages capacity upgrade on demand
(CUoD)".
Local exploitation of an untrusted path vulnerability in the chcod command
included by default in multiple versions of IBM Corp. AIX could allow for
arbitrary code execution as the root user.
DETAILS
Vulnerable Systems:
* IBM AIX version 5.2
During execution, chcod invokes an external application ("grep") while
trusting the user specified PATH environment variable. Root privileges are
not dropped before this execution occurs, thus allowing an attacker to
gain root access by specifying a controlled path and creating a malicious
binary within that path. All an attacker needs to do to exploit the
vulnerability is create a file called grep which contains malicious code,
set their PATH variable to the current directory, and execute
/usr/sbin/chcod.
Analysis:
The impact of this vulnerability is lessened by the fact that an attacker
must first gain access to the system group in order to use this binary.
Once group id system has been acquired, all that is required to exploit
this vulnerability is a writable directory. This
directory can be the user's home directory, or even the /tmp directory,
provided setuid execution is allowed. Exploitation does not require any
knowledge of application internals, making privilege escalation trivial,
even for unskilled attackers.
Workaround:
Only allow trusted users local access to security critical systems. Only
allow trusted users access to the system group. Alternately, remove the
setuid bit from chcod using chmod u-s /usr/sbin/chcod.
Vendor Response:
"IBM provides the following fixes:
* APAR number for AIX 5.1.0: IY64356 (available)
* APAR number for AIX 5.2.0: IY64355 (available)
* APAR number for AIX 5.3.0: IY64354 (available)
NOTE: Affected customers are urged to upgrade to 5.1.0, 5.2.0 or 5.3.0 at
the latest maintenance level."
CVE Information:
<http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1028>
CAN-2004-1028
Disclosure Timeline:
11/02/2004 - Initial vendor notification
11/04/2004 - Initial vendor response
12/20/2004 - Coordinated public disclosure
ADDITIONAL INFORMATION
The information has been provided by
<mailto:idlabs-advisories@idefense.com> iDEFENSE.
The original article can be found at:
<http://www.idefense.com/application/poi/display?id=170&type=vulnerabilities> http://www.idefense.com/application/poi/display?id=170&type=vulnerabilities
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Previous message: SecuriTeam: "[UNIX] libkadm5srv Heap Buffer Overflow"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
- [NEWS] @Mail Web Interface Multiple Security Vulnerabilities
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... attacker to point it to
mailbox of any registered user in @Mail system. ... Vulnerability 2: SQL database
install - Multiple SQL Injection ... (Securiteam) - [NT] EMC Legato Networker DoS and Multiple Buffer Overflows
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... EMC Legato Networker DoS
and Multiple Buffer Overflows ... The vulnerability specifically exists due to improper
handling of ... is sent by an attacker, it is possible to overwrite portions of heap ...
(Securiteam) - [UNIX] IBM Informix Dynamic Server DBLANG Directory Traversal Vulnerability
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... IBM Informix Dynamic Server
DBLANG Directory Traversal Vulnerability ... Local exploitation of a directory traversal
vulnerability in IBM Corp.'s ... attacker can cause set-uid binaries to use Native
Language Support ... (Securiteam) - [NT] Technical Description of the SSL PCT Vulnerability
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... thorough and detailed analysis
of the vulnerability in MS's SSL library is ... the variable N is taken from the packet
itself. ... In this context a "valid field value" is one that allows the execution ...
(Securiteam) - [NEWS] IBM Lotus Domino IMAP Buffer Overflow Vulnerability
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... IBM Lotus Domino IMAP Buffer
Overflow Vulnerability ... Remote exploitation of a buffer overflow vulnerability within
IBM Corp.'s ... This allows an attacker to take complete control of the compromised ...
(Securiteam)