A vulnerability has been identified in PHP, which could be exploited by local attackers to bypass security restrictions. This issue is due to a race condition between the time that "open_basedir" access controls for a symbolic link are verified and the time the requested file is accessed by certain functions, which could be exploited by malicious users to gain unauthorized access to restricted files via a PHP script containing "symlink()", "mkdir()", "unlink()", and "fopen()" calls.
It is also possible to bypass "safe_mode" and "open_basedir" restrictions via a malicious path and a NULL byte before a ";" in a "session_save_path" argument, followed by an allowed path.
Credits
Vulnerabilities reported by Stefan Esser and Maksymilian Arciemowicz
ChangeLog
2006-10-04 : Initial release
2007-02-06 : Updated Advisory
Vulnerability Management
Subscribe to FrSIRT VNS and receive real-time e-mail and SMS alerts when new vulnerabilities, exploits, 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 or by email to updates@frsirt.com.