|
|
>> PHP "open_basedir" Directive Security Bypass Vulnerability
|
Title : PHP "open_basedir" Directive Security Bypass Vulnerability VUPEN ID : VUPEN/ADV-2005-1862 CVE ID : CVE-2005-3054 CWE ID : CWE-
Rated as : Low Risk 
Remotely Exploitable : No Locally Exploitable : Yes Release Date : 2005-09-27
|
A vulnerability has been identified in PHP, which could be exploited by malicious users to bypass security policies. This flaw is due to an error in "fopen_wrappers.c" that does not properly restrict access to other directories when the "open_basedir" directive includes a trailing slash, which could allow certain scripts in a directory (e.g. "/user/test2/) to access files in other directories whose names are substrings of the original directory (e.g. "/user/test22/).
Affected Products
PHP version 4.4.0 and prior
PHP version 5.0.5 and prior
Solution
Upgrade to PHP version 4.4.1 or 5.1.0 :
http://www.php.net/downloads.php
References
http://www.vupen.com/english/advisories/2005/1862 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=323585
Credits
Vulnerability reported by thorben
ChangeLog
2005-09-27 : Initial release
2005-10-31 : Updated Solution
Vulnerability Management
Subscribe to VUPEN VNS and receive real-time e-mail and SMS alerts when new advisories or patches relevant to your systems and network configurations are available.
Feedback
If you have additional information or corrections for this security advisory please submit them via our contact form. | |
|