PHP 5.4.0 header 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.
5.3$5k-$25k0.00

A vulnerability was found in PHP 5.4.0 (Programming Language Software) and classified as critical. This issue affects the function header. The manipulation with an unknown input leads to a input validation vulnerability. Using CWE to declare the problem leads to 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. Impacted is integrity. The summary by CVE is:

The sapi_header_op function in main/SAPI.c in PHP 5.4.0RC2 through 5.4.0 does not properly determine a pointer during checks for %0D sequences (aka carriage return characters), which allows remote attackers to bypass an HTTP response-splitting protection mechanism via a crafted URL, related to improper interaction between the PHP header function and certain browsers, as demonstrated by Internet Explorer and Google Chrome. NOTE: this vulnerability exists because of an incorrect fix for CVE-2011-1398.

The weakness was disclosed 09/07/2012 (Website). The advisory is shared at svn.php.net. The identification of this vulnerability is CVE-2012-4388 since 08/21/2012. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details are known, but no exploit is available. The price for an exploit might be around USD $0-$5k at the moment (estimation calculated on 12/13/2021).

The vulnerability scanner Nessus provides a plugin with the ID 58967 (PHP 5.4.x < 5.4.1 Multiple Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CGI abuses. The commercial vulnerability scanner Qualys is able to test this issue with plugin 166234 (SUSE Enterprise Linux Security Update for PHP5 (SUSE-SU-2013:1315-1)).

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 X-Force (78586) and Tenable (58967). The entry 61947 is 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: 5.3
VulDB Meta Temp Score: 5.3

VulDB Base Score: 5.3
VulDB Temp Score: 5.3
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: 🔍

Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-Dayunlockunlockunlockunlock
Todayunlockunlockunlockunlock

Nessus ID: 58967
Nessus Name: PHP 5.4.x < 5.4.1 Multiple Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍

OpenVAS ID: 802966
OpenVAS Name: PHP main/SAPI.c HTTP Header Injection Vulnerability
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: no mitigation known
Status: 🔍

0-Day Time: 🔍

Timelineinfo

11/06/2011 🔍
08/21/2012 +289 days 🔍
08/31/2012 +10 days 🔍
09/05/2012 +5 days 🔍
09/07/2012 +2 days 🔍
09/07/2012 +0 days 🔍
11/13/2012 +67 days 🔍
03/24/2015 +861 days 🔍
12/13/2021 +2456 days 🔍

Sourcesinfo

Product: php.org

Advisory: 54374
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2012-4388 (🔍)
OVAL: 🔍

X-Force: 78586
SecurityTracker: 1027463 - PHP HTTP Response Splitting Header Injection Protection Can Be Bypassed Using Carriage Return Characters
Vulnerability Center: 37195 - PHP 5.4.0RC2 Through 5.4.0 Allows to Bypass an HTTP Response-Splitting Protection Mechanism, Medium
SecurityFocus: 55527 - PHP 'main/SAPI.c' CVE-2012-4388 HTTP Header Injection Vulnerability

See also: 🔍

Entryinfo

Created: 03/24/2015 12:22
Updated: 12/13/2021 13:33
Changes: 03/24/2015 12:22 (66), 04/21/2017 11:24 (9), 12/13/2021 13:27 (3), 12/13/2021 13:33 (2)
Complete: 🔍

Discussion

No comments yet. Languages: en.

Please log in to comment.

Do you need the next level of professionalism?

Upgrade your account now!