ID CVE-2009-0361
Summary Russ Allbery pam-krb5 before 3.13, as used by libpam-heimdal, su in Solaris 10, and other software, does not properly handle calls to pam_setcred when running setuid, which allows local users to overwrite and change the ownership of arbitrary files by setting the KRB5CCNAME environment variable, and then launching a setuid application that performs certain pam_setcred operations.
References
Vulnerable Configurations
  • cpe:2.3:a:eyrie:pam-krb5:3.0:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:3.1:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:3.2:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.2:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:3.3:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.3:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:3.4:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.4:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:3.5:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.5:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:3.6:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.6:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:3.7:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.7:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:3.8:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.8:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:3.9:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.9:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:3.10:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.10:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:3.11:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:3.11:*:*:*:*:*:*:*
  • cpe:2.3:a:eyrie:pam-krb5:*:*:*:*:*:*:*:*
    cpe:2.3:a:eyrie:pam-krb5:*:*:*:*:*:*:*:*
CVSS
Base: 4.6 (as of 11-10-2018 - 21:01)
Impact:
Exploitability:
CWE CWE-264
CAPEC
  • Manipulating Web Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
  • Using Malicious Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Target Programs with Elevated Privileges
    This attack targets programs running with elevated privileges. The attacker would try to leverage a bug in the running program and get arbitrary code to execute with elevated privileges. For instance an attacker would look for programs that write to the system directories or registry keys (such as HKLM, which stores a number of critical Windows environment variables). These programs are typically running with elevated privileges and have usually not been designed with security in mind. Such programs are excellent exploit targets because they yield lots of power when they break. The malicious user try to execute its code at the same level as a privileged system call.
  • Restful Privilege Elevation
    Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.
Access
VectorComplexityAuthentication
LOCAL LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:L/AC:L/Au:N/C:P/I:P/A:P
oval via4
  • accepted 2009-05-11T04:00:19.532-04:00
    class vulnerability
    contributors
    name Pai Peng
    organization Hewlett-Packard
    definition_extensions
    • comment Solaris 8 (SPARC) is installed
      oval oval:org.mitre.oval:def:1539
    • comment Solaris 9 (SPARC) is installed
      oval oval:org.mitre.oval:def:1457
    • comment Solaris 10 (SPARC) is installed
      oval oval:org.mitre.oval:def:1440
    • comment Solaris 8 (x86) is installed
      oval oval:org.mitre.oval:def:2059
    • comment Solaris 9 (x86) is installed
      oval oval:org.mitre.oval:def:1683
    • comment Solaris 10 (x86) is installed
      oval oval:org.mitre.oval:def:1926
    description Russ Allbery pam-krb5 before 3.13, as used by libpam-heimdal, su in Solaris 10, and other software, does not properly handle calls to pam_setcred when running setuid, which allows local users to overwrite and change the ownership of arbitrary files by setting the KRB5CCNAME environment variable, and then launching a setuid application that performs certain pam_setcred operations.
    family unix
    id oval:org.mitre.oval:def:5403
    status accepted
    submitted 2009-03-27T14:00:00.000-04:00
    title A Security Vulnerability in the Solaris Kerberos PAM Module May Allow Use of a User Specified Kerberos Configuration File, Leading to Escalation of Privileges
    version 35
  • accepted 2015-04-20T04:02:26.095-04:00
    class vulnerability
    contributors
    • name Pai Peng
      organization Hewlett-Packard
    • name Sushant Kumar Singh
      organization Hewlett-Packard
    • name Sushant Kumar Singh
      organization Hewlett-Packard
    • name Prashant Kumar
      organization Hewlett-Packard
    • name Mike Cokus
      organization The MITRE Corporation
    description Russ Allbery pam-krb5 before 3.13, as used by libpam-heimdal, su in Solaris 10, and other software, does not properly handle calls to pam_setcred when running setuid, which allows local users to overwrite and change the ownership of arbitrary files by setting the KRB5CCNAME environment variable, and then launching a setuid application that performs certain pam_setcred operations.
    family unix
    id oval:org.mitre.oval:def:5521
    status accepted
    submitted 2009-04-07T11:48:37.000-04:00
    title HP-UX Running PAM Kerberos, Local Privilege Escalation, Unauthorized Access
    version 45
refmap via4
bid 33741
bugtraq 20090211 pam-krb5 security advisory (3.12 and earlier)
confirm http://support.avaya.com/elmodocs2/security/ASA-2009-070.htm
debian
  • DSA-1721
  • DSA-1722
gentoo GLSA-200903-39
misc http://www.eyrie.org/~eagle/software/pam-krb5/security/2009-02-11.html
sectrack 1021711
secunia
  • 33914
  • 33917
  • 33918
  • 34260
  • 34449
sunalert 252767
ubuntu USN-719-1
vupen
  • ADV-2009-0410
  • ADV-2009-0426
  • ADV-2009-0979
statements via4
contributor Joshua Bressers
lastmodified 2009-02-13
organization Red Hat
statement Not vulnerable. This issue did not affect the versions of the pam_krb5 package, as shipped with Red Hat Enterprise Linux 2.1, 3, 4, or 5.
Last major update 11-10-2018 - 21:01
Published 13-02-2009 - 17:30
Last modified 11-10-2018 - 21:01
Back to Top