Description
PHP 4.x up to 4.4.4 and PHP 5 up to 5.1.6 allows local users to bypass certain Apache HTTP Server httpd.conf options, such as safe_mode and open_basedir, via the ini_restore function, which resets the values to their php.ini (Master Value) defaults.
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 3 < 5 - Ini_Restore() 'Safe_mode' / 'open_basedir' Restriction Bypass EDB-28504 · local · Sep 9, 2006 · 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
- 22338 third-party-advisory
- SSRT071423 vendor-advisory
- 20060909 Re: PHP 5.1.6 / 4.4.4 Critical php_admin* bypass by ini_restore() mailing-list
- OpenPKG-SA-2006.023 vendor-advisory
- 1519 third-party-advisory
- TLSA-2006-38 vendor-advisory
- USN-362-1 vendor-advisory
- 20060913 Re: PHP 5.1.6 / 4.4.4 Critical php_admin* bypass by ini_restore() mailing-list
- HPSBTU02232 vendor-advisory
- ADV-2007-2374 vdb-entry
- 25423 third-party-advisory
- 22282 third-party-advisory
- 19933 vdb-entry
- php-inirestore-security-bypass(28853) vdb-entry
- SUSE-SA:2006:059 vendor-advisory
- MDKSA-2006:185 vendor-advisory
- 22331 third-party-advisory
- 25850 third-party-advisory
- 20060909 PHP 5.1.6 / 4.4.4 Critical php_admin* bypass by ini_restore() third-party-advisory
- 22424 third-party-advisory