| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.8 | $0-$5k | 0.00 |
Summary
A vulnerability was found in PHP up to 5.0.2 and classified as problematic. This vulnerability affects the function addslashes of the file /0 of the component magic_quotes_gpc. The manipulation results in path traversal.
This vulnerability is cataloged as CVE-2004-1020. Furthermore, there is an exploit available.
It is suggested to upgrade the affected component.
Details
A vulnerability, which was classified as problematic, was found in PHP up to 5.0.2 (Programming Language Software). Affected is the function addslashes of the file /0 of the component magic_quotes_gpc. The manipulation with an unknown input leads to a path traversal vulnerability. CWE is classifying the issue as CWE-22. The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. This is going to have an impact on confidentiality. CVE summarizes:
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.
The bug was discovered 12/15/2004. The weakness was shared 01/10/2005 by Daniel Fabian with SEC-CONSULT (Website). The advisory is shared for download at securityfocus.com. This vulnerability is traded as CVE-2004-1020 since 11/04/2004. The exploitability is told to be easy. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. Technical details and a public exploit are known. The MITRE ATT&CK project declares the attack technique as T1006.
The exploit is shared for download at exploit-db.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 4 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 16001 (GLSA-200412-14 : PHP: Multiple vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Gentoo Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12144 (PHP Multiple Remote Vulnerabilities).
Upgrading to version 4.3.9 eliminates this vulnerability. A possible mitigation has been published even before and not after the disclosure of the vulnerability. Furthermore it is possible to detect and prevent this kind of attack with TippingPoint and the filter 4723.
The vulnerability is also documented in the databases at X-Force (18516), Exploit-DB (24985), Tenable (16001), SecurityFocus (BID 11981†) and OSVDB (12600†). The entries VDB-1060, VDB-1059, VDB-1056 and VDB-1055 are related to this item. VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Type
Name
Version
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.3VulDB Meta Temp Score: 4.8
VulDB Base Score: 5.3
VulDB Temp Score: 4.8
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Path traversalCWE: CWE-22
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 16001
Nessus Name: GLSA-200412-14 : PHP: Multiple vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: PHP 4.3.9
TippingPoint: 🔍
ISS Proventia IPS: 🔍
Timeline
11/04/2004 🔍12/15/2004 🔍
12/16/2004 🔍
12/16/2004 🔍
12/19/2004 🔍
12/19/2004 🔍
12/20/2004 🔍
01/10/2005 🔍
01/10/2005 🔍
03/10/2015 🔍
07/07/2025 🔍
Sources
Product: php.orgAdvisory: securityfocus.com⛔
Researcher: Daniel Fabian
Organization: SEC-CONSULT
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2004-1020 (🔍)
GCVE (CVE): GCVE-0-2004-1020
GCVE (VulDB): GCVE-100-23664
X-Force: 18516
SecurityFocus: 11981 - PHP Multiple Remote Vulnerabilities
OSVDB: 12600 - PHP addslashes view files
Vulnerability Center: 6579 - Directory Traversal in PHP Allows Reading and Uploading Arbitrary Files, High
scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍
Entry
Created: 03/10/2015 12:14Updated: 07/07/2025 00:07
Changes: 03/10/2015 12:14 (76), 06/04/2019 16:56 (4), 02/02/2025 10:36 (27), 07/07/2025 00:07 (2)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.