PHP 5.2.1 substr_compare length integer coercion

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.
4.8$0-$5k0.00

Summaryinfo

A vulnerability identified as critical has been detected in PHP 5.2.1. This affects the function substr_compare. This manipulation of the argument length causes integer coercion. This vulnerability is tracked as CVE-2007-1375. Moreover, an exploit is present. You should upgrade the affected component.

Detailsinfo

A vulnerability has been found in PHP 5.2.1 (Programming Language Software) and classified as critical. Affected by this vulnerability is the function substr_compare. The manipulation of the argument length with an unknown input leads to a integer coercion vulnerability. The CWE definition for the vulnerability is CWE-192. Integer coercion refers to a set of flaws pertaining to the type casting, extension, or truncation of primitive data types. As an impact it is known to affect confidentiality. The summary by CVE is:

Integer overflow in the substr_compare function in PHP 5.2.1 and earlier allows context-dependent attackers to read sensitive memory via a large value in the length argument, a different vulnerability than CVE-2006-1991.

The bug was discovered 03/07/2007. The weakness was disclosed 03/07/2007 by Stefan Esser (Website). It is possible to read the advisory at php-security.org. This vulnerability is known as CVE-2007-1375 since 03/09/2007. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a public exploit are known.

After immediately, there has been an exploit disclosed. It is possible to download the exploit at php-security.org. It is declared as proof-of-concept. We expect the 0-day to have been worth approximately $25k-$100k. The vulnerability scanner Nessus provides a plugin with the ID 26107 (Mandrake Linux Security Advisory : php (MDKSA-2007:187)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Mandriva Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12259 (PHP Prior to 5.2.1/4.4.5 Multiple Vulnerabilities).

Upgrading eliminates this vulnerability. A possible mitigation has been published 8 months after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Exploit-DB (3424), Tenable (26107), SecurityFocus (BID 22851†), OSVDB (32780†) and Secunia (SA24606†). The entries VDB-2920, VDB-2911, VDB-2914 and VDB-2917 are pretty similar. Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.3
VulDB Meta Temp Score: 4.8

VulDB Base Score: 5.3
VulDB Temp Score: 4.8
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Integer coercion
CWE: CWE-192 / CWE-189
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: 26107
Nessus Name: Mandrake Linux Security Advisory : php (MDKSA-2007:187)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 58335
OpenVAS Name: Debian Security Advisory DSA 1283-1 (php5)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

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

Timelineinfo

03/07/2007 🔍
03/07/2007 +0 days 🔍
03/07/2007 +0 days 🔍
03/07/2007 +0 days 🔍
03/07/2007 +0 days 🔍
03/09/2007 +2 days 🔍
03/09/2007 +0 days 🔍
03/09/2007 +0 days 🔍
03/21/2007 +11 days 🔍
04/01/2007 +11 days 🔍
09/21/2007 +173 days 🔍
09/24/2007 +3 days 🔍
03/13/2015 +2727 days 🔍
08/26/2024 +3454 days 🔍

Sourcesinfo

Product: php.org

Advisory: php-security.org
Researcher: Stefan Esser
Status: Not defined
Confirmation: 🔍

CVE: CVE-2007-1375 (🔍)
GCVE (CVE): GCVE-0-2007-1375
GCVE (VulDB): GCVE-100-35527

OVAL: 🔍

SecurityFocus: 22851 - PHP 5 Substr_Compare Integer Overflow Vulnerability
Secunia: 24606 - Gentoo update for php, Highly Critical
OSVDB: 32780 - PHP substr_compare() Function Arbitrary Memory Disclosure
Vulnerability Center: 14742 - PHP 5.2.1 substr_compare Function Integer Overflow Sensitive Information Disclosure, Medium

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

Entryinfo

Created: 03/13/2015 12:16
Updated: 08/26/2024 03:29
Changes: 03/13/2015 12:16 (89), 07/17/2019 09:57 (3), 08/26/2024 03:29 (17)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you know our Splunk app?

Download it now for free!