CVE-2006-5178
MEDIUM
6.2
CVSS 2.0
Description
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.
Affected products and versions
- PHP — Up to and including 5.1.6
- PHP versions 4.0, 4.0.1, 4.0.1patch1, 4.0.1patch2, 4.0.2, 4.0.3patch1, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.0.7rc1, 4.0.7rc2, 4.0.7rc3, 4.1.0, 4.1.1, 4.1.2, 4.2, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.3.6, 4.3.7, 4.3.8, 4.3.9, 4.3.10, 4.3.11, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.4.4, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.0.5, 5.0rc1, 5.0rc2, 5.0rc3, 5.1.0, 5.1.1, 5.1.2, 5.1.3, 5.1.4, 5.1.5
References
- lists.grok.org.uk http://lists.grok.org.uk/pipermail/full-disclosure/2006-October/049850.html Exploit
- secunia.com http://secunia.com/advisories/22235 Exploit, Vendor Advisory
- secunia.com http://secunia.com/advisories/22424
- securityreason.com http://securityreason.com/securityalert/1692
- securitytracker.com http://securitytracker.com/id?1016977 Exploit
- www.hardened-php.net http://www.hardened-php.net/advisory_082006.132.html Exploit, Vendor Advisory
- www.mandriva.com http://www.mandriva.com/security/advisories?name=MDKSA-2006:185
- www.neosecurityteam.net http://www.neosecurityteam.net/index.php?action=advisories&id=26
- www.securityfocus.com http://www.securityfocus.com/archive/1/447649/100/0/threaded
- www.securityfocus.com http://www.securityfocus.com/archive/1/448020/100/0/threaded
- www.securityfocus.com http://www.securityfocus.com/archive/1/448953/100/0/threaded
- www.securityfocus.com http://www.securityfocus.com/bid/20326 Exploit
- www.turbolinux.com http://www.turbolinux.com/security/2006/TLSA-2006-38.txt
- www.vupen.com http://www.vupen.com/english/advisories/2006/3901
- exchange.xforce.ibmcloud.com https://exchange.xforce.ibmcloud.com/vulnerabilities/29340
- nvd.nist.gov Official NVD record