2007-1581 | PHP Stream hash_update_file code injection (BID-23062 / XFDB-33248)
|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.
A vulnerability was found in PHP (Programming Language Software) and classified as very critical. Affected by this issue is the function
hash_update_file of the component Stream Handler. The manipulation with an unknown input leads to a privilege escalation vulnerability. Using CWE to declare the problem leads to CWE-94. Impacted is confidentiality, integrity, and availability. CVE summarizes:
The resource system in PHP 5.0.0 through 5.2.1 allows context-dependent attackers to execute arbitrary code by interrupting the hash_update_file function via a userspace (1) error or (2) stream handler, which can then be used to destroy and modify internal resources. NOTE: it was later reported that PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 are also affected.
The weakness was disclosed 03/21/2007 by Stefan Esser (Website). The advisory is available at milw0rm.com. This vulnerability is handled as CVE-2007-1581 since 03/21/2007. 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 structure of the vulnerability defines a possible price range of USD $0-$5k at the moment (estimation calculated on 07/13/2021).
It is declared as proof-of-concept. The exploit is available at securityfocus.com. As 0-day the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 48244 (PHP 5.2 CGI abuses.
There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.
The vulnerability is also documented in the databases at SecurityFocus (BID 23062), X-Force (33248), Secunia (SA24542), Vulnerability Center (SBV-36836) and Tenable (48244). The entries 35763, 35646 and 36024 are pretty similar.
VulDB Meta Base Score: 10.0
VulDB Meta Temp Score: 9.4
NVD Base Score: 🔍
Class: Privilege escalation
03/20/2007 +0 days 🔍
03/21/2007 +1 days 🔍
03/21/2007 +0 days 🔍
03/21/2007 +0 days 🔍
08/04/2010 +1232 days 🔍
10/25/2012 +813 days 🔍
03/13/2015 +869 days 🔍
01/12/2016 +305 days 🔍
07/13/2021 +2009 days 🔍Product: https://www.php.org/
Researcher: Stefan Esser
Status: Not defined
CVE: CVE-2007-1581 (🔍)
SecurityFocus: 23062 – PHP Hash_Update_File Freed Resource Access Code Execution Vulnerability
Vulnerability Center: 36836 – PHP 5.0.0 – 5.2.1 Allows Remote Code Execution By Interrupting the x27hash_update_filex27 Function, High
Download the whitepaper to learn more about our service!