Description
The fopen function in PHP 5.2.0 does not properly handle invalid URI handlers, which allows context-dependent attackers to bypass safe_mode restrictions and read arbitrary files via a file path specified with an invalid URI, as demonstrated via the srpath URI.
Exploits (1)
exploitdb
WORKING POC
VERIFIED
by Maksymilian Arciemowicz · textlocalphp
https://www.exploit-db.com/exploits/29528
References (3)
Core 3
Core References
Exploit third-party-advisory
x_refsource_sreasonres
http://securityreason.com/achievement_securityalert/44
Third Party Advisory, VDB Entry vdb-entry
x_refsource_bid
http://www.securityfocus.com/bid/22261
Third Party Advisory third-party-advisory
x_refsource_sreason
http://securityreason.com/securityalert/2175
Scores
EPSS
0.0276
EPSS Percentile
86.1%
Details
Status
published
Products (1)
php/php
5.2.0
Published
May 24, 2007
Tracked Since
Feb 18, 2026