vendor:
CUPS
by:
Jon Oberheide
7.2
CVSS
HIGH
Local Privilege Escalation
264
CWE
Product Name: CUPS
Affected Version From: CUPS 1.3.8
Affected Version To: CUPS 1.3.8-4
Patch Exists: YES
Related CWE: CVE-2008-5377
CPE: a:apple:cups:1.3.8
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Linux
2008
CUPS < 1.3.8-4 pstopdf filter exploit
The exploit creates and prints a malformed postscript document that will cause the CUPS pstopdf filter to write an error message out to its log file that contains the string /tmp/getuid.so. However, since we also symlink the pstopdf log file /tmp/pstopdf.log to /etc/ld.so.preload, the error message and malicious shared library path will be appended to the ld.so.preload file, allowing us to elevate privileges to root.
Mitigation:
Ensure that the pstopdf filter is not used and that /etc/ld.so.preload is not world readable.