CVE-2006-5178
Summary
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 & exploitability
AV:L/AC:H/Au:N/C:C/I:C/A:C
Affected products we track (1)
Recommendation
Apply the vendor fix in your normal patch cycle. Open any affected product above for its exact safe version.
Additional information
- NVD record
- http://secunia.com/advisories/22235Advisory
- http://www.hardened-php.net/advisory_082006.132.htmlAdvisory
- http://secunia.com/advisories/22424
- http://securityreason.com/securityalert/1692
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:185
- http://www.neosecurityteam.net/index.php?action=advisories&id=26
- http://lists.grok.org.uk/pipermail/full-disclosure/2006-October/049850.htmlExploit
- http://securitytracker.com/id?1016977Exploit