PHP up to 5.6.31/7.0.24/7.1.10 Date Extension parse_date.c php_parse_date out-of-bounds

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

A vulnerability was found in PHP up to 5.6.31/7.0.24/7.1.10 (Programming Language Software). It has been rated as problematic. This issue affects the function php_parse_date of the file ext/date/lib/parse_date.c of the component Date Extension. The manipulation with an unknown input leads to a out-of-bounds vulnerability. Using CWE to declare the problem leads to CWE-125. The product reads data past the end, or before the beginning, of the intended buffer. Impacted is confidentiality. The summary by CVE is:

In PHP before 5.6.32, 7.x before 7.0.25, and 7.1.x before 7.1.11, an error in the date extension's timelib_meridian handling of 'front of' and 'back of' directives could be used by attackers able to supply date strings to leak information from the interpreter, related to ext/date/lib/parse_date.c out-of-bounds reads affecting the php_parse_date function. NOTE: this is a different issue than CVE-2017-11145.

The bug was discovered 10/27/2017. The weakness was disclosed 11/07/2017 (Website). It is possible to read the advisory at php.net. The identification of this vulnerability is CVE-2017-16642 since 11/07/2017. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details as well as a public exploit are known.

A public exploit has been developed by Wei Lei/Liu Yang and been published 2 days after the advisory. The exploit is available at exploit-db.com. It is declared as proof-of-concept. We expect the 0-day to have been worth approximately $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 104633 (PHP 7.1.x < 7.1.11 Multiple Vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CGI abuses and running in the context r. The commercial vulnerability scanner Qualys is able to test this issue with plugin 176247 (Debian Security Update for php7.0 (DSA 4080-1)).

Upgrading to version 5.6.32, 7.0.25 or 7.1.11 eliminates this vulnerability. A possible mitigation has been published before and not just after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at Tenable (104633) and Exploit-DB (43133). The entries 67396, 67398, 67420 and 67724 are 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: 6.4
VulDB Meta Temp Score: 6.1

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

NVD Base Score: 7.5
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock

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

NVD Base Score: 🔍

Exploitinginfo

Class: Out-of-bounds
CWE: CWE-125 / CWE-119
ATT&CK: Unknown

Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Author: Wei Lei/Liu Yang
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-Dayunlockunlockunlockunlock
Todayunlockunlockunlockunlock

Nessus ID: 104633
Nessus Name: PHP 7.1.x < 7.1.11 Multiple Vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 860857
OpenVAS Name: PHP timelib_meridian Heap Based Buffer Overflow Vulnerability (Linux)
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍
Exploit Delay Time: 🔍

Upgrade: PHP 5.6.32/7.0.25/7.1.11
Patch: github.com

Timelineinfo

10/26/2017 🔍
10/27/2017 +1 days 🔍
11/07/2017 +11 days 🔍
11/07/2017 +0 days 🔍
11/07/2017 +0 days 🔍
11/07/2017 +0 days 🔍
11/08/2017 +1 days 🔍
11/09/2017 +1 days 🔍
11/09/2017 +0 days 🔍
11/16/2017 +7 days 🔍
01/06/2023 +1877 days 🔍

Sourcesinfo

Product: php.org

Advisory: RHSA-2018:1296
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2017-16642 (🔍)
OVAL: 🔍

SecurityFocus: 101745 - PHP CVE-2017-16642 Heap Based Buffer Overflow Vulnerability

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

Entryinfo

Created: 11/08/2017 07:46
Updated: 01/06/2023 15:02
Changes: 11/08/2017 07:46 (83), 12/11/2019 06:56 (6), 01/06/2023 15:02 (5)
Complete: 🔍

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!