what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

iDEFENSE Security Advisory 2004-12-20.t

iDEFENSE Security Advisory 2004-12-20.t
Posted Dec 31, 2004
Authored by iDefense Labs | Site idefense.com

iDEFENSE Security Advisory 12.20.2004 - 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. Verified in version 5.2.

tags | advisory, arbitrary, local, root, code execution
systems | aix
advisories | CVE-2004-1028
SHA-256 | 5fcb009b609699d12cd1c4c09eee472af26805ac0e9da8716890e671ec6d8c2a

iDEFENSE Security Advisory 2004-12-20.t

Change Mirror Download
IBM AIX chcod Local Privilege Escalation Vulnerability

iDEFENSE Security Advisory 12.20.04
www.idefense.com/application/poi/display?id=170&type=vulnerabilities
December 20, 2004

I. BACKGROUND

The chcod program is a setuid root application, installed by default
under newer versions of IBM AIX, that manages capacity upgrade on demand
(CUoD).

II. DESCRIPTION

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.

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.

III. 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.

IV. DETECTION

iDEFENSE has confirmed the existence of this vulnerability in IBM AIX
version 5.2. It is suspected that previous versions are also
vulnerable. 

V. 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.

VI. 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."

VII. CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
names CAN-2004-1028 to these issues. This is a candidate for inclusion
in the CVE list (http://cve.mitre.org), which standardizes names for
security problems.

VIII. DISCLOSURE TIMELINE

11/02/2004       Initial vendor notification
11/04/2004       Initial vendor response
12/20/2004       Coordinated public disclosure

IX. CREDIT

iDEFENSE Labs is credited with this discovery.

Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp

X. LEGAL NOTICES

Copyright (c) 2004 iDEFENSE, Inc.

Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDEFENSE. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.



Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close