PHP up to 4.3.10/5.0.3 addslashes input validation

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
8.8$0-$5k0.00

Summaryinfo

A vulnerability described as problematic has been identified in PHP up to 4.3.10/5.0.3. The affected element is the function addslashes. The manipulation with the input $software_input_value results in input validation. This vulnerability is reported as CVE-2004-1019. The attack can be launched remotely. Moreover, an exploit is present. Upgrading the affected component is recommended.

Detailsinfo

A vulnerability classified as critical has been found in PHP up to 4.3.10/5.0.3 (Programming Language Software). Affected is the function addslashes. The manipulation with the input value \0 leads to a input validation vulnerability. CWE is classifying the issue as CWE-20. The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

The deserialization code in PHP before 4.3.10 and PHP 5.x up to 5.0.2 allows remote attackers to cause a denial of service and execute arbitrary code via untrusted data to the unserialize function that may trigger "information disclosure, double-free and negative reference index array underflow" results.

The bug was discovered 12/15/2004. The weakness was disclosed 12/16/2004 by Stefan Esser with PHP Team (Website). The advisory is available at php.net. This vulnerability is traded as CVE-2004-1019 since 11/04/2004. 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 exploit is shared for download at securityfocus.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 1 days. During that time the estimated underground price was around $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 19133 (FreeBSD : php -- multiple vulnerabilities (d47e9d19-5016-11d9-9b5f-0050569f0001)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family FreeBSD Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 169006 (SUSE Enterprise Linux Security Update for php53 (SUSE-SU-2016:1638-1)).

Upgrading to version 4.3.10 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at php.net. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published 1 days after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (18514), Tenable (19133), SecurityFocus (BID 11964†), OSVDB (12415†) and Secunia (SA13481†). Further details are available at hardened-php.net. The entries VDB-1060, VDB-1059, VDB-1056 and VDB-1055 are pretty similar. VulDB is the best source for vulnerability data and more expert information about this specific topic.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 9.8
VulDB Meta Temp Score: 8.8

VulDB Base Score: 9.8
VulDB Temp Score: 8.8
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Input validation
CWE: CWE-20
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-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 19133
Nessus Name: FreeBSD : php -- multiple vulnerabilities (d47e9d19-5016-11d9-9b5f-0050569f0001)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 52269
OpenVAS Name: php -- multiple vulnerabilities
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Upgrade: PHP 4.3.10
Patch: php.net

Timelineinfo

11/04/2004 🔍
12/15/2004 +41 days 🔍
12/15/2004 +0 days 🔍
12/15/2004 +0 days 🔍
12/16/2004 +1 days 🔍
12/16/2004 +0 days 🔍
12/16/2004 +0 days 🔍
12/17/2004 +0 days 🔍
12/20/2004 +3 days 🔍
01/03/2005 +14 days 🔍
01/10/2005 +7 days 🔍
07/13/2005 +184 days 🔍
06/30/2019 +5100 days 🔍

Sourcesinfo

Product: php.org

Advisory: php.net
Researcher: Stefan Esser
Organization: PHP Team
Status: Not defined
Confirmation: 🔍

CVE: CVE-2004-1019 (🔍)
GCVE (CVE): GCVE-0-2004-1019
GCVE (VulDB): GCVE-100-1062

OVAL: 🔍

X-Force: 18514 - PHP unserialize code execution, High Risk
SecurityFocus: 11964 - PHP Multiple Local And Remote Vulnerabilities
Secunia: 13481 - PHP Multiple Vulnerabilities, Highly Critical
OSVDB: 12415 - PHP unserialize() Function Negative Reference Arbitrary Code Execution
Vulnerability Center: 6578 - PHP4 <= 4.3.9 and PHP5 <= 5.0.2 Allow Obtaining Information and Code Execution, High

scip Labs: https://www.scip.ch/en/?labs.20161013
Misc.: 🔍
See also: 🔍

Entryinfo

Created: 01/03/2005 10:23
Updated: 06/30/2019 16:40
Changes: 01/03/2005 10:23 (104), 06/30/2019 16:40 (4)
Complete: 🔍
Cache ID: 216:6CD:103

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you want to use VulDB in your project?

Use the official API to access entries easily!