CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register   Reset Password   Activate Account
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2006-5178

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.
Publish Date : 2006-10-10 Last Update Date : 2010-09-15
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
6.2
Confidentiality Impact Complete (There is total information disclosure, resulting in all system files being revealed.)
Integrity Impact Complete (There is a total compromise of system integrity. There is a complete loss of system protection, resulting in the entire system being compromised.)
Availability Impact Complete (There is a total shutdown of the affected resource. The attacker can render the resource completely unavailable.)
Access Complexity High (Specialized access conditions exist. It is hard to exploit and several special conditions must be satisfied to exploit)
Authentication Not required (Authentication is not required to exploit the vulnerability.)
Gained Access Admin
Vulnerability Type(s) Bypass a restriction or similar
CWE ID 362

- Vendor Statements

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
Source: Redhat

- Products Affected By CVE-2006-5178

# Product Type Vendor Product Version Update Edition Language
1 Application PHP PHP 4.0 Version Details Vulnerabilities
2 Application PHP PHP 4.0.1 Version Details Vulnerabilities
3 Application PHP PHP 4.0.1 Patch1 Version Details Vulnerabilities
4 Application PHP PHP 4.0.1 Patch2 Version Details Vulnerabilities
5 Application PHP PHP 4.0.2 Version Details Vulnerabilities
6 Application PHP PHP 4.0.3 Patch1 Version Details Vulnerabilities
7 Application PHP PHP 4.0.4 Version Details Vulnerabilities
8 Application PHP PHP 4.0.5 Version Details Vulnerabilities
9 Application PHP PHP 4.0.6 Version Details Vulnerabilities
10 Application PHP PHP 4.0.7 RC2 Version Details Vulnerabilities
11 Application PHP PHP 4.0.7 RC3 Version Details Vulnerabilities
12 Application PHP PHP 4.0.7 Version Details Vulnerabilities
13 Application PHP PHP 4.0.7 RC1 Version Details Vulnerabilities
14 Application PHP PHP 4.1.0 Version Details Vulnerabilities
15 Application PHP PHP 4.1.1 Version Details Vulnerabilities
16 Application PHP PHP 4.1.2 Version Details Vulnerabilities
17 Application PHP PHP 4.2 DEV Version Details Vulnerabilities
18 Application PHP PHP 4.2.0 Version Details Vulnerabilities
19 Application PHP PHP 4.2.1 Version Details Vulnerabilities
20 Application PHP PHP 4.2.2 Version Details Vulnerabilities
21 Application PHP PHP 4.2.3 Version Details Vulnerabilities
22 Application PHP PHP 4.3 Version Details Vulnerabilities
23 Application PHP PHP 4.3.1 Version Details Vulnerabilities
24 Application PHP PHP 4.3.2 Version Details Vulnerabilities
25 Application PHP PHP 4.3.3 Version Details Vulnerabilities
26 Application PHP PHP 4.3.4 Version Details Vulnerabilities
27 Application PHP PHP 4.3.5 Version Details Vulnerabilities
28 Application PHP PHP 4.3.6 Version Details Vulnerabilities
29 Application PHP PHP 4.3.7 Version Details Vulnerabilities
30 Application PHP PHP 4.3.8 Version Details Vulnerabilities
31 Application PHP PHP 4.3.9 Version Details Vulnerabilities
32 Application PHP PHP 4.3.10 Version Details Vulnerabilities
33 Application PHP PHP 4.3.11 Version Details Vulnerabilities
34 Application PHP PHP 4.4.0 Version Details Vulnerabilities
35 Application PHP PHP 4.4.1 Version Details Vulnerabilities
36 Application PHP PHP 4.4.2 Version Details Vulnerabilities
37 Application PHP PHP 4.4.3 Version Details Vulnerabilities
38 Application PHP PHP 4.4.4 Version Details Vulnerabilities
39 Application PHP PHP 5.0 RC1 Version Details Vulnerabilities
40 Application PHP PHP 5.0 RC2 Version Details Vulnerabilities
41 Application PHP PHP 5.0 RC3 Version Details Vulnerabilities
42 Application PHP PHP 5.0.0 Version Details Vulnerabilities
43 Application PHP PHP 5.0.1 Version Details Vulnerabilities
44 Application PHP PHP 5.0.2 Version Details Vulnerabilities
45 Application PHP PHP 5.0.3 Version Details Vulnerabilities
46 Application PHP PHP 5.0.4 Version Details Vulnerabilities
47 Application PHP PHP 5.0.5 Version Details Vulnerabilities
48 Application PHP PHP 5.1 Version Details Vulnerabilities
49 Application PHP PHP 5.1.1 Version Details Vulnerabilities
50 Application PHP PHP 5.1.2 Version Details Vulnerabilities
51 Application PHP PHP 5.1.3 Version Details Vulnerabilities
52 Application PHP PHP 5.1.4 Version Details Vulnerabilities
53 Application PHP PHP 5.1.5 Version Details Vulnerabilities
54 Application PHP PHP 5.1.6 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
PHP PHP 54

- References For CVE-2006-5178

http://secunia.com/advisories/22424
SECUNIA 22424
http://lists.grok.org.uk/pipermail/full-disclosure/2006-October/049850.html
FULLDISC 20061003 Advisory 08/2006: PHP open_basedir Race Condition Vulnerability
http://secunia.com/advisories/22235
SECUNIA 22235
http://securitytracker.com/id?1016977
SECTRACK 1016977
http://securityreason.com/securityalert/1692
SREASON 1692
http://www.hardened-php.net/advisory_082006.132.html
http://www.frsirt.com/english/advisories/2006/3901
VUPEN ADV-2006-3901
http://www.mandriva.com/security/advisories?name=MDKSA-2006:185
MANDRIVA MDKSA-2006:185
http://www.neosecurityteam.net/index.php?action=advisories&id=26
http://www.securityfocus.com/archive/1/archive/1/448953/100/0/threaded
OPENPKG OpenPKG-SA-2006.023
http://www.securityfocus.com/archive/1/archive/1/448020/100/0/threaded
BUGTRAQ 20061009 PHP open_basedir with symlink() function Race Condition PoC exploit
http://www.securityfocus.com/archive/1/archive/1/447649/100/0/threaded
BUGTRAQ 20061003 Advisory 08/2006: PHP open_basedir Race Condition Vulnerability
http://www.securityfocus.com/bid/20326
BID 20326 PHP Symbolic Link Open_Basedir Bypass Vulnerability Release Date:2006-12-22
http://www.turbolinux.com/security/2006/TLSA-2006-38.txt
TURBO TLSA-2006-38
http://xforce.iss.net/xforce/xfdb/29340
XF php-openbasedir-security-bypass(29340)

- Metasploit Modules Related To CVE-2006-5178

There are not any metasploit modules related to this vulnerability (Please visit www.metasploit.com for more information)


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.