Description
The session extension in PHP before 5.2.4 might allow local users to bypass open_basedir restrictions via a session file that is a symlink.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Exploit-DB 1
- PHP 5.2.12/5.3.1 - 'symlink()' open_basedir Bypass EDB-10557 · local · Dec 19, 2009 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 26822 third-party-advisory
- php-session-security-bypass(36387) vdb-entry
- GLSA-200710-02 vendor-advisory
- http://www.php.net/ChangeLog-5.php#5.2.4
- 2007-0026 vendor-advisory
- https://issues.rpath.com/browse/RPL-1693
- https://issues.rpath.com/browse/RPL-1702
- 26838 third-party-advisory
- 27377 third-party-advisory
- 27102 third-party-advisory
- ADV-2007-3023 vdb-entry
- http://www.php.net/releases/5_2_4.php
- 26642 third-party-advisory