First published: Wed Dec 08 2004(Updated: )
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.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
PHP | =4.3.9 | |
PHP | =5.0-rc1 | |
PHP | =4.3.6 | |
PHP | =5.0.1 | |
PHP | =4.3.7 | |
PHP | =5.0-rc3 | |
PHP | =5.0-rc2 | |
PHP | =5.0.2 | |
PHP | =5.0.0 | |
PHP | =4.3.8 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2004-1020 is considered a critical vulnerability due to its potential to allow remote file read access.
To fix CVE-2004-1020, upgrade your PHP version to one that is not affected, such as PHP 5.0.3 or later.
CVE-2004-1020 affects PHP versions 4.3.6 to 4.3.9 and beta versions of 5.0 up to 5.0.2.
CVE-2004-1020 can be exploited through remote code execution techniques, particularly directory traversal attacks.
Mitigations for CVE-2004-1020 include disabling the use of the addslashes function in PHP and rigorously filtering input for file inclusion operations.