PHP 5.3.25/5.4.15 String quot_print.c php_quot_print_encode memory corruption

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

Summaryinfo

A vulnerability has been found in PHP 5.3.25/5.4.15 and classified as critical. This affects the function php_quot_print_encode of the file ext/standard/quot_print.c of the component String Handler. This manipulation with the input str_repeat("\xf4", 1000) causes memory corruption. This vulnerability is handled as CVE-2013-2110. Additionally, an exploit exists. The affected component should be upgraded.

Detailsinfo

A vulnerability was found in PHP 5.3.25/5.4.15 (Programming Language Software). It has been declared as critical. Affected by this vulnerability is the function php_quot_print_encode of the file ext/standard/quot_print.c of the component String Handler. The manipulation with the input value str_repeat("\xf4", 1000) leads to a memory corruption vulnerability. The CWE definition for the vulnerability is CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:

Heap-based buffer overflow in the php_quot_print_encode function in ext/standard/quot_print.c in PHP before 5.3.26 and 5.4.x before 5.4.16 allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted argument to the quoted_printable_encode function.

The weakness was released 06/06/2013 by stas as Sec Bug #64879 as not defined bug report (Website). The advisory is shared at bugs.php.net. The public release was coordinated with the project team. This vulnerability is known as CVE-2013-2110 since 02/19/2013. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a public exploit are known.

A public exploit has been developed by stas in PHP and been published immediately after the advisory. It is possible to download the exploit at bugs.php.net. 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 69763 (Amazon Linux AMI : php (ALAS-2013-205)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Amazon Linux Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 121868 (Solaris 11.1 Support Repository Update (SRU) 17.5.0 Missing).

Upgrading to version 5.3.26 or 5.4.16 eliminates this vulnerability. Applying the patch Patch quotedfix for Strings related Bug #64879 is able to eliminate this problem. The bugfix is ready for download at bugs.php.net. The problem might be mitigated by replacing the product with ASP, JSP or CGI as an alternative. The best possible mitigation is suggested to be upgrading to the latest version. A possible mitigation has been published immediately after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (69763), SecurityFocus (BID 60411†), OSVDB (94063†) and Secunia (SA53736†). Entries connected to this vulnerability are available at VDB-3695, VDB-5786, VDB-5794 and VDB-8036. Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 10.0
VulDB Meta Temp Score: 9.0

VulDB Base Score: 10.0
VulDB Temp Score: 9.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Author: stas
Programming Language: 🔍
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 69763
Nessus Name: Amazon Linux AMI : php (ALAS-2013-205)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 803678
OpenVAS Name: PHP Multiple Vulnerabilities - June13 (Windows)
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: 🔍
Exploit Delay Time: 🔍

Upgrade: PHP 5.3.26/5.4.16
Patch: Patch quotedfix for Strings related Bug #64879
Alternative: ASP/JSP/CGI

Timelineinfo

02/19/2013 🔍
06/06/2013 +107 days 🔍
06/06/2013 +0 days 🔍
06/06/2013 +0 days 🔍
06/07/2013 +1 days 🔍
06/07/2013 +0 days 🔍
06/11/2013 +4 days 🔍
06/21/2013 +10 days 🔍
09/04/2013 +75 days 🔍
04/28/2019 +2062 days 🔍

Sourcesinfo

Product: php.org

Advisory: Sec Bug #64879
Researcher: stas
Status: Not defined
Confirmation: 🔍
Coordinated: 🔍

CVE: CVE-2013-2110 (🔍)
GCVE (CVE): GCVE-0-2013-2110
GCVE (VulDB): GCVE-100-9061

OVAL: 🔍
IAVM: 🔍

SecurityFocus: 60411 - PHP CVE-2013-2110 Heap Based Buffer Overflow Vulnerability
Secunia: 53736 - PHP "php_quot_print_encode()" Buffer Overflow Vulnerability, Moderately Critical
OSVDB: 94063

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

Entryinfo

Created: 06/11/2013 16:02
Updated: 04/28/2019 10:49
Changes: 06/11/2013 16:02 (94), 04/28/2019 10:49 (1)
Complete: 🔍
Cache ID: 216:994:103

Discussion

No comments yet. Languages: en.

Please log in to comment.

Might our Artificial Intelligence support you?

Check our Alexa App!