PHP up to 5.6.27/7.0.12 URL Parser ext/standard/url.c php_url_parse_ex Hostname input validation
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.2 | $0-$5k | 0.00 |
Summary
A vulnerability marked as critical has been reported in PHP up to 5.6.27/7.0.12. The affected element is the function php_url_parse_ex of the file ext/standard/url.c of the component URL Parser. The manipulation as part of Hostname leads to input validation.
This vulnerability is listed as CVE-2016-10397. The attack may be initiated remotely. There is no available exploit.
Applying a patch is the recommended action to fix this issue.
Details
A vulnerability was found in PHP up to 5.6.27/7.0.12 (Programming Language Software). It has been rated as critical. This issue affects the function php_url_parse_ex of the file ext/standard/url.c of the component URL Parser. The manipulation as part of a Hostname 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 confidentiality, integrity, and availability. The summary by CVE is:
In PHP before 5.6.28 and 7.x before 7.0.13, incorrect handling of various URI components in the URL parser could be used by attackers to bypass hostname-specific URL checks, as demonstrated by evil.example.com:80#@good.example.com/ and evil.example.com:[email protected]/ inputs to the parse_url function (implemented in the php_url_parse_ex function in ext/standard/url.c).
The bug was discovered 09/28/2016. The weakness was presented 07/10/2017 as confirmed git commit (GIT Repository). The advisory is shared at git.php.net. The identification of this vulnerability is CVE-2016-10397 since 07/10/2017. 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 vulnerability was handled as a non-public zero-day exploit for at least 285 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 101908 (Debian DLA-1034-1 : php5 security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 196874 (Ubuntu Security Notification for Php5, Php7.0 Vulnerabilities (USN-3382-1)).
Upgrading to version 5.6.28 or 7.0.13 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at git.php.net. The best possible mitigation is suggested to be patching the affected component. A possible mitigation has been published 2 weeks after the disclosure of the vulnerability.
The vulnerability is also documented in the databases at Tenable (101908) and SecurityFocus (BID 99552†). See VDB-97454, VDB-103375, VDB-103376 and VDB-103377 for similar entries. If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Product
Type
Name
Version
- 5.6.0
- 5.6.1
- 5.6.2
- 5.6.3
- 5.6.4
- 5.6.5
- 5.6.6
- 5.6.7
- 5.6.8
- 5.6.9
- 5.6.10
- 5.6.11
- 5.6.12
- 5.6.13
- 5.6.14
- 5.6.15
- 5.6.16
- 5.6.17
- 5.6.18
- 5.6.19
- 5.6.20
- 5.6.21
- 5.6.22
- 5.6.23
- 5.6.24
- 5.6.25
- 5.6.26
- 5.6.27
- 7.0.0
- 7.0.1
- 7.0.2
- 7.0.3
- 7.0.4
- 7.0.5
- 7.0.6
- 7.0.7
- 7.0.8
- 7.0.9
- 7.0.10
- 7.0.11
- 7.0.12
License
Website
- Product: https://www.php.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.4VulDB Meta Temp Score: 7.2
VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.5
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Input validationCWE: CWE-20
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 101908
Nessus Name: Debian DLA-1034-1 : php5 security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
OpenVAS ID: 801364
OpenVAS Name: PHP URL checks Security Bypass Vulnerability Jul17 (Windows)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Upgrade: PHP 5.6.28/7.0.13
Patch: b061fa909de77085d3822a89ab901b934d0362c4
Timeline
09/28/2016 🔍07/10/2017 🔍
07/10/2017 🔍
07/10/2017 🔍
07/10/2017 🔍
07/11/2017 🔍
07/21/2017 🔍
07/24/2017 🔍
12/12/2022 🔍
Sources
Product: php.orgAdvisory: 73192
Researcher: mala
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2016-10397 (🔍)
GCVE (CVE): GCVE-0-2016-10397
GCVE (VulDB): GCVE-100-103373
SecurityFocus: 99552 - PHP CVE-2016-10397 Security Bypass Vulnerability
See also: 🔍
Entry
Created: 07/11/2017 12:40Updated: 12/12/2022 09:20
Changes: 07/11/2017 12:40 (81), 10/24/2019 16:11 (5), 12/31/2020 12:57 (2), 12/12/2022 09:20 (4)
Complete: 🔍
Cache ID: 216::103
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
No comments yet. Languages: en.
Please log in to comment.