Description
PHP 4 before 4.4.5 and PHP 5 before 5.2.1, when using an empty session save path (session.save_path), uses the TMPDIR default after checking the restrictions, which allows local users to bypass open_basedir restrictions.
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.1 - 'Session.Save_Path()' TMPDIR open_basedir Restriction Bypass EDB-29801 · local · Mar 28, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- ADV-2007-1991 vdb-entry
- SSRT071423 vendor-advisory
- HPSBTU02232 vendor-advisory
- http://www.php-security.org/MOPB/MOPB-36-2007.html
- ADV-2007-2374 vdb-entry
- php-sessionsavepath-restriction-bypass(33550) vdb-entry
- 25423 third-party-advisory
- 25850 third-party-advisory
- 23183 vdb-entry