CVE-2004-1020 The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may allow remote attackers to read arbitrary files in PHP applications that contain a directory traversal vul...
MediumCVSS 5.0
EPSS 7.1%
Public exploit
- Published
- Updated
- Exploit status
- Public exploit available
Description
The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may allow remote attackers to read arbitrary files in PHP applications that contain a directory traversal vulnerability in require or include statements, but are otherwise protected by the magic_quotes_gpc mechanism. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | = 4.3.6 | No fix listed |
| PHP | = 4.3.7 | No fix listed |
| PHP | = 4.3.8 | No fix listed |
| PHP | = 4.3.9 | No fix listed |
| PHP | = 5.0-rc1 | No fix listed |
| PHP | = 5.0-rc2 | No fix listed |
| PHP | = 5.0-rc3 | No fix listed |
| PHP | = 5.0.0 | No fix listed |
| PHP | = 5.0.1 | No fix listed |
| PHP | = 5.0.2 | No fix listed |
References
- CLA-2005:915 vendor-advisory
- GLSA-200412-14 vendor-advisory
- MDKSA-2004:151 vendor-advisory
- www.php.net vendor-advisory
- HPSBMA01212 vendor-advisory
- 20041216 PHP Input Validation Vulnerabilities exploit mailing-list vendor-advisory
- 11981 exploit patch vdb-entry
- php-addslashes-view-files(18516) vdb-entry