PHP up to 4.3.9/5.0.2 Safe Mode realpath denial of service

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

A vulnerability, which was classified as critical, has been found in PHP up to 4.3.9/5.0.2 (Programming Language Software). Affected by this issue is the function realpath of the component Safe Mode. The manipulation with an unknown input leads to a denial of service vulnerability. Using CWE to declare the problem leads to CWE-404. The product does not release or incorrectly releases a resource before it is made available for re-use. Impacted is confidentiality, integrity, and availability. CVE summarizes:

The safe mode checks in PHP 4.x to 4.3.9 and PHP 5.x to 5.0.2 truncate the file path before passing the data to the realpath function, which could allow attackers to bypass safe mode. 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 disclosed 01/10/2005 by Stefan Esser (Website). The advisory is shared for download at securityfocus.com. This vulnerability is handled as CVE-2004-1064 since 11/23/2004. The exploitation is known to be easy. The attack may be launched remotely. No form of authentication is required for exploitation. Technical details as well as a public exploit are known.

The exploit is available at securityfocus.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 26 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 20726 (Ubuntu 4.10 : php4 vulnerabilities (USN-99-2)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Ubuntu Local Security Checks and running in the context l.

Upgrading to version 4.x eliminates this vulnerability. A possible mitigation has been published 3 months after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (18512) and Tenable (20726). The entries 1060, 1059, 1056 and 1055 are pretty similar.

Productinfo

Type

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB CVSS-B Score: 🔍
VulDB CVSS-BT Score: 🔍
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: Denial of service
CWE: CWE-404
CAPEC: 🔍
ATT&CK: 🔍

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: 20726
Nessus Name: Ubuntu 4.10 : php4 vulnerabilities (USN-99-2)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

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

Upgrade: PHP 4.x
ISS Proventia IPS: 🔍

Timelineinfo

11/23/2004 🔍
12/15/2004 +22 days 🔍
12/15/2004 +0 days 🔍
01/10/2005 +26 days 🔍
01/10/2005 +0 days 🔍
01/10/2005 +0 days 🔍
03/13/2005 +62 days 🔍
03/24/2005 +11 days 🔍
01/15/2006 +297 days 🔍
03/10/2015 +3341 days 🔍
05/30/2019 +1542 days 🔍

Sourcesinfo

Product: php.org

Advisory: securityfocus.com
Researcher: Stefan Esser
Status: Not defined
Confirmation: 🔍

CVE: CVE-2004-1064 (🔍)
X-Force: 18512
Vulnerability Center: 7272 - PHP 4.3.9 and 5.0.2 Safe Mode Bypassing, Medium
SecurityFocus: 11964 - PHP Multiple Local And Remote Vulnerabilities
OSVDB: 12413 - PHP realpath bypass safe_mode restriction

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

Entryinfo

Created: 03/10/2015 12:14
Updated: 05/30/2019 17:15
Changes: 03/10/2015 12:14 (77), 05/30/2019 17:15 (5)
Complete: 🔍

Discussion

No comments yet. Languages: en.

Please log in to comment.

Might our Artificial Intelligence support you?

Check our Alexa App!