Description
curl/interface.c in the cURL library (aka libcurl) in PHP 5.2.4 and 5.2.5 allows context-dependent attackers to bypass safe_mode and open_basedir restrictions and read arbitrary files via a file:// request containing a \x00 sequence, a different vulnerability than CVE-2006-2563.
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.
Exploit-DB 1
- PHP 5.2.5 - cURL 'safe_mode' Security Bypass EDB-31053 · remote · Jan 23, 2008 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- ADV-2008-1412 vdb-entry
- APPLE-SA-2008-07-31 vendor-advisory
- 31681 vdb-entry
- 29009 vdb-entry
- 27413 vdb-entry
- ADV-2008-2268 vdb-entry
- USN-628-1 vendor-advisory
- 20080122 PHP 5.2.5 cURL safe_mode bypass mailing-list
- 20080122 PHP 5.2.5 cURL safe_mode bypass third-party-advisory
- [oss-security] 20080502 CVE Request (PHP) mailing-list
- 20080527 rPSA-2008-0178-1 php php-mysql php-pgsql mailing-list
- 30411 third-party-advisory
- http://www.php.net/ChangeLog-5.php
- MDVSA-2009:023 vendor-advisory
- MDVSA-2009:022 vendor-advisory
- 31200 third-party-advisory
- 32222 third-party-advisory
- 20080122 PHP 5.2.5 cURL safe_mode bypass mailing-list
- 3562 third-party-advisory
- http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0178
- 31326 third-party-advisory
- ADV-2008-2780 vdb-entry
- php-safemode-directive-security-bypass(42134) vdb-entry
- php-curlinit-security-bypass(39852) vdb-entry
- APPLE-SA-2008-10-09 vendor-advisory
- http://support.apple.com/kb/HT3216
- http://cvs.php.net/viewcvs.cgi/php-src/NEWS?revision=1.2027.2.547.2.1047&view=markup
- 30048 third-party-advisory