|
PHP Trailing Slash "open_basedir" Security Bypass
|
|
|
|
|
Secunia Advisory:
|
SA16971
|
|
|
Release Date:
|
2005-09-27
|
|
Last Update:
|
2005-11-28
|
|
|
Critical:
|

Not critical
|
|
Impact:
|
Security Bypass
|
|
Where:
|
Local system
|
|
Solution Status:
|
Vendor Patch
|
|
| Software: | PHP 4.4.x PHP 5.0.x
|
| | CVE reference: | CVE-2005-3054 (Secunia mirror)
|
|
|
Want to know the next time vulnerabilities are fixed in this product? - Companies can be alerted via email and SMS! |
|
|
Description: thorben has discovered a security issue in PHP, which can be exploited by malicious, local users to access certain files outside the "open_basedir" root.
The security issue is caused due to fopen wrappers not correctly obeying the "open_basedir" directive, which is designed to restrict PHP scripts in certain environments from accessing files outside the defined prefix. This can be exploited to access files in directories outside the "open_basedir" root as if a trailing slash on the "open_basedir" value is not taken into account.
Example:
Files in the "/user/test11/" directory can be accessed with the "open_basedir" root set to "/user/test1/", but not files in the "/user/test2/" directory.
The security issue has been confirmed in version 4.4.0 and 5.0.5. Other versions may also be affected.
Do you have this product installed on your home computer? Scan using the free Personal Software Inspector. Check if a vulnerable version is installed on computers in your corporate network, scan using the Network Software Inspector.
Solution: Update to version 4.4.1 or 5.1.0.
http://www.php.net/downloads.php
Provided and/or discovered by: thorben
Changelog: 2005-10-31: Updated "Solution" section.
2005-11-28: Updated "Solution" section.
Original Advisory: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=323585
|
|
|
|
|
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.
Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
|
|
|
|
33 Related Secunia Security Advisories, displaying 10
|
|
|
1. PHP Multiple Vulnerabilities
|
|
2. PHP COM Objects Security Bypass
|
|
3. PHP crypt() Race Condition Vulnerability
|
|
4. PHP "gdPngReadData()" Truncated PNG Data Denial of Service
|
|
5. PHP Multiple Vulnerabilities
|
|
6. PHP "readwbmp()" Integer Overflow Vulnerability
|
|
7. PHP Multiple Code Execution Vulnerabilities
|
|
8. PHP Interbase Extension "isc_attach_database()" Buffer Overflow
|
|
9. PHP Session Handling Double Free Vulnerabilities
|
|
10. PHP "snmpget()" and "session_decode()" Vulnerabilities
|
Show all related advisories
|
|
|
Send Feedback to Secunia
|
|
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.
Ideas, suggestions, and other feedback are most welcome.
|
|
|
|