National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2004-1020 Detail

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.

Source:  MITRE      Last Modified:  01/10/2005

Quick Info

CVE Dictionary Entry:
CVE-2004-1020
Original release date:
01/10/2005
Last revised:
07/10/2017
Source:
US-CERT/NIST

Impact

CVSS Severity (version 2.0):
CVSS v2 Base Score:
5.0 MEDIUM
Vector:
(AV:N/AC:L/Au:N/C:P/I:N/A:N) (legend)
Impact Subscore:
2.9
Exploitability Subscore:
10.0
CVSS Version 2 Metrics:
Access Vector:
Network exploitable
Access Complexity:
Low
Authentication:
Not required to exploit
Impact Type:
Allows unauthorized disclosure of information

Vendor Statements (disclaimer)

Official Statement from Red Hat (08/26/2007)

Red Hat does not consider this issue to be a security vulnerability since no trust boundary is crossed. There are no known uses of this function which could allow a remote attacker to execute arbitrary code.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource Type Source Name
http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915 External Source CONECTIVA CLA-2005:915
http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml Vendor Advisory External Source GENTOO GLSA-200412-14
http://www.mandriva.com/security/advisories?name=MDKSA-2004:151 External Source MANDRAKE MDKSA-2004:151
http://www.php.net/release_4_3_10.php Vendor Advisory External Source CONFIRM http://www.php.net/release_4_3_10.php
http://www.securityfocus.com/advisories/9028 External Source HP HPSBMA01212
http://www.securityfocus.com/archive/1/384663 Exploit; Vendor Advisory External Source BUGTRAQ 20041216 PHP Input Validation Vulnerabilities
http://www.securityfocus.com/bid/11981 Exploit; Patch External Source BID 11981
https://exchange.xforce.ibmcloud.com/vulnerabilities/18516 External Source XF php-addslashes-view-files(18516)

Technical Details

Vulnerability Type (View All)

Change History 3 change records found - show changes