PT-2011-1233 · Php+4 · Php+4
Published
2011-01-18
·
Updated
2024-06-15
·
CVE-2006-7243
CVSS v2.0
5.0
Medium
| Vector | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Name of the Vulnerable Software and Affected Versions
PHP versions prior to 5.3.4
Description
The issue allows context-dependent attackers to bypass intended access restrictions. This can be achieved by placing a safe file extension after the 0 character in a pathname. For example, using .php0.jpg at the end of the argument to the
file exists function. The vulnerability exists due to insufficient input validation in the file exists function of the PHP interpreter, which can be exploited by a remote attacker to bypass existing security restrictions.Recommendations
For PHP versions prior to 5.3.4, update to version 5.3.4 or later to resolve the issue. As a temporary workaround, consider validating and sanitizing all input to the
file exists function to prevent the use of the 0 character in pathnames.Exploit
Fix
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Centos
Hp-Ux
Php
Red Hat
Suse