PHP 4.4.7/5.2.3 wordwrap 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.
4.8$0-$5k0.00

Summaryinfo

A vulnerability was found in PHP 4.4.7/5.2.3. It has been rated as problematic. This impacts the function wordwrap. Performing a manipulation results in input validation. This vulnerability is cataloged as CVE-2007-3998. Furthermore, there is an exploit available. Upgrading the affected component is advised.

Detailsinfo

A vulnerability classified as problematic has been found in PHP 4.4.7/5.2.3 (Programming Language Software). This affects the function wordwrap. The manipulation with an unknown input 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 availability. The summary by CVE is:

The wordwrap function in PHP 4 before 4.4.8, and PHP 5 before 5.2.4, does not properly use the breakcharlen variable, which allows remote attackers to cause a denial of service (divide-by-zero error and application crash, or infinite loop) via certain arguments, as demonstrated by a chr(0), 0, "" argument set.

The bug was discovered 08/30/2007. The weakness was shared 09/04/2007 by Maksymilian Arciemowicz (shinnai) (Website). It is possible to read the advisory at php.net. This vulnerability is uniquely identified as CVE-2007-3998 since 07/25/2007. The exploitability is told to be easy. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. 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 5 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 26204 (CentOS 3 : php (CESA-2007:0889)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CentOS Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 165666 (SUSE Enterprise Linux Security Update php4, php5 (SUSE-SA:2008:004)).

Upgrading to version 5.2.3 eliminates this vulnerability. A possible mitigation has been published 4 weeks after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (36623), Tenable (26204), SecurityFocus (BID 25498†), OSVDB (36858†) and Secunia (SA26642†). The entries VDB-3203, VDB-3288, VDB-3287 and VDB-3284 are related to this item. Statistical analysis made it clear that VulDB provides the best quality 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: 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: 26204
Nessus Name: CentOS 3 : php (CESA-2007:0889)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 60099
OpenVAS Name: Debian Security Advisory DSA 1444-1 (php5)
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 5.2.3

Timelineinfo

07/25/2007 🔍
08/30/2007 +36 days 🔍
08/31/2007 +1 days 🔍
08/31/2007 +0 days 🔍
09/04/2007 +4 days 🔍
09/04/2007 +0 days 🔍
09/04/2007 +0 days 🔍
09/18/2007 +14 days 🔍
09/26/2007 +8 days 🔍
10/03/2007 +7 days 🔍
03/16/2015 +2721 days 🔍
07/25/2019 +1592 days 🔍

Sourcesinfo

Product: php.org

Advisory: php.net
Researcher: Maksymilian Arciemowicz (shinnai)
Status: Not defined
Confirmation: 🔍

CVE: CVE-2007-3998 (🔍)
GCVE (CVE): GCVE-0-2007-3998
GCVE (VulDB): GCVE-100-38619

OVAL: 🔍

X-Force: 36623
SecurityFocus: 25498 - PHP 5.2.3 and Prior Versions Multiple Vulnerabilities
Secunia: 26642
OSVDB: 36858 - CVE-2007-3998 - PHP - Denial-Of-Service Issue
Vulnerability Center: 16073 - PHP Wordrap Function Remote Denial of Service, Medium
Vupen: ADV-2007-3023

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

Entryinfo

Created: 03/16/2015 12:18
Updated: 07/25/2019 20:16
Changes: 03/16/2015 12:18 (79), 07/25/2019 20:16 (11)
Complete: 🔍
Cache ID: 216::103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

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!