National Cyber-Alert System
Vulnerability Summary for CVE-2006-5178
Original release date:10/10/2006
Last revised:09/05/2008
Source:
US-CERT/NIST
Overview
Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the open_basedir restriction by using a combination of symlink, mkdir, and unlink functions to change the file path after the open_basedir check and before the file is opened by the underlying system, as demonstrated by symlinking a symlink into a subdirectory, to point to a parent directory via .. (dot dot) sequences, and then unlinking the resulting symlink.
Impact
CVSS Severity (version 2.0):
Impact Subscore:
4.9
Exploitability Subscore:
1.9
CVSS Version 2 Metrics:
Access Vector: Locally exploitable
Access Complexity: High
Authentication: Not required to exploit
Impact Type:Allows unauthorized disclosure of information; Allows unauthorized modification
- Official Statement from Red Hat (12/04/2006)
-
We do not consider these to be security issues. For more details see http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=169857#c1
and http://www.php.net/security-note.php
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.
External Source: XF
Name: php-openbasedir-security-bypass(29340)
External Source: BID
Name: 20326
External Source: BUGTRAQ
Name: 20061009 PHP open_basedir with symlink() function Race Condition PoC exploit
External Source: BUGTRAQ
Name: 20061003 Advisory 08/2006: PHP open_basedir Race Condition Vulnerability
Type: Advisory
External Source: MISC
Name: http://www.neosecurityteam.net/index.php?action=advisories&id=26
External Source: MISC
Name: http://www.hardened-php.net/advisory_082006.132.html
Type: Advisory
External Source: VUPEN
Name: ADV-2006-3901
Type: Advisory
External Source: SECTRACK
Name: 1016977
External Source: SECUNIA
Name: 22235
Type: Advisory
External Source: FULLDISC
Name: 20061003 Advisory 08/2006: PHP open_basedir Race Condition Vulnerability
External Source: TURBO
Name: TLSA-2006-38
External Source: OPENPKG
Name: OpenPKG-SA-2006.023
External Source: MANDRIVA
Name: MDKSA-2006:185
External Source: SREASON
Name: 1692
External Source: SECUNIA
Name: 22424
External Source: MANDRIVA
Name: MDKSA-2006:185