Linux-PAM Pam_Wheel Module getlogin() Username Spoofing Privileged Escalation Vulnerability
BID:7929
Info
Linux-PAM Pam_Wheel Module getlogin() Username Spoofing Privileged Escalation Vulnerability
| Bugtraq ID: | 7929 |
| Class: | Access Validation Error |
| CVE: |
CVE-2003-0388 |
| Remote: | No |
| Local: | Yes |
| Published: | Jun 16 2003 12:00AM |
| Updated: | Jul 11 2009 10:06PM |
| Credit: | The discovery of this vulnerability has been credited to Karol Wiesek ([email protected]). |
| Vulnerable: |
Redhat Linux 9.0 i386 Redhat Linux 7.3 i386 Redhat Enterprise Linux WS 2.1 IA64 Redhat Enterprise Linux WS 2.1 Redhat Enterprise Linux ES 2.1 IA64 Redhat Enterprise Linux ES 2.1 Redhat Enterprise Linux AS 2.1 IA64 Redhat Enterprise Linux AS 2.1 Redhat Advanced Workstation for the Itanium Processor 2.1 IA64 Redhat Advanced Workstation for the Itanium Processor 2.1 Linux-PAM Linux-PAM 0.77 |
| Not Vulnerable: |
Linux-PAM Linux-PAM 0.78 |
Discussion
Linux-PAM Pam_Wheel Module getlogin() Username Spoofing Privileged Escalation Vulnerability
A vulnerability has been discovered in the Linux-Pam pam_wheel module. The problem exists in the way the module authenticates users under certain configurations. Specifically, if the module is configured to allow wheel group members to use the 'su' utility without supplying credentials and is not configured to verify the user's UID, it may be possible for a local attacker to elevated privileges.
This can be accomplished by spoofing the users login named, returned by the getlogin() function, to that of a logged in user of the wheel group.
Successful exploitation of this condition could ultimately result in an attacker gaining local root access on the target system.
A vulnerability has been discovered in the Linux-Pam pam_wheel module. The problem exists in the way the module authenticates users under certain configurations. Specifically, if the module is configured to allow wheel group members to use the 'su' utility without supplying credentials and is not configured to verify the user's UID, it may be possible for a local attacker to elevated privileges.
This can be accomplished by spoofing the users login named, returned by the getlogin() function, to that of a logged in user of the wheel group.
Successful exploitation of this condition could ultimately result in an attacker gaining local root access on the target system.
Solution / Fix
Linux-PAM Pam_Wheel Module getlogin() Username Spoofing Privileged Escalation Vulnerability
Solution:
It has been reported that Linux-PAM 0.78 is not affected by this issue. The vendor has announced that a fix for version 0.77 will not be released and a new version of Linux-Pam will also not be released. Users are advised to upgrade to the unaffected version as soon as possible.
Red Hat has released advisory RHSA-2004:304-05 and fixes to address this issue on Red Hat Linux Enterprise platforms. Customers who are affected by this issue are advised to apply the appropriate updates. Customers subscribed to the Red Hat Network may apply the appropriate fixes using the Red Hat Update Agent (up2date). Please see referenced advisory for additional information.
A Fedora Legacy advisory (FLSA:152771) and updates are available to address this issue for Red Hat Linux. Please see the referenced advisory for further information in regards to obtaining and applying appropriate updates.
Linux-PAM Linux-PAM 0.77
Solution:
It has been reported that Linux-PAM 0.78 is not affected by this issue. The vendor has announced that a fix for version 0.77 will not be released and a new version of Linux-Pam will also not be released. Users are advised to upgrade to the unaffected version as soon as possible.
Red Hat has released advisory RHSA-2004:304-05 and fixes to address this issue on Red Hat Linux Enterprise platforms. Customers who are affected by this issue are advised to apply the appropriate updates. Customers subscribed to the Red Hat Network may apply the appropriate fixes using the Red Hat Update Agent (up2date). Please see referenced advisory for additional information.
A Fedora Legacy advisory (FLSA:152771) and updates are available to address this issue for Red Hat Linux. Please see the referenced advisory for further information in regards to obtaining and applying appropriate updates.
Linux-PAM Linux-PAM 0.77
-
Linux-PAM Linux-PAM 0.78
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pam/Linux-PAM/ -
RedHat pam-0.75-46.10.legacy.7x.i386.rpm
RedHat Linux 7.3
http://download.fedoralegacy.org/redhat/7.3/updates/i386/pam-0.75-46.1 0.legacy.7x.i386.rpm -
RedHat pam-0.75-62.10.legacy.i386.rpm
RedHat Linux 9.0
http://download.fedoralegacy.org/redhat/9/updates/i386/pam-0.75-62.10. legacy.i386.rpm -
RedHat pam-devel-0.75-46.10.legacy.7x.i386.rpm
RedHat Linux 7.3
http://download.fedoralegacy.org/redhat/7.3/updates/i386/pam-devel-0.7 5-46.10.legacy.7x.i386.rpm -
RedHat pam-devel-0.75-62.10.legacy.i386.rpm
RedHat Linux 9.0
http://download.fedoralegacy.org/redhat/9/updates/i386/pam-devel-0.75- 62.10.legacy.i386.rpm
References
Linux-PAM Pam_Wheel Module getlogin() Username Spoofing Privileged Escalation Vulnerability
References:
References:
- Linux-PAM Home Page (Linux-PAM)
- pam_wheel.c (Linux-PAM)
- RHSA-2004:304-05 - Updated pam packages (RedHat)
- iDEFENSE Security Advisory 06.16.03: Linux-PAM getlogin() Spoofing Vulnerabili (Dave Ahmad
)