PHP up to 5.4.3 fileinfo magic/Magdir/commands access control

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

A vulnerability, which was classified as problematic, has been found in PHP up to 5.4.3 (Programming Language Software). This issue affects an unknown functionality of the file magic/Magdir/commands of the component fileinfo. The manipulation with an unknown input leads to a access control vulnerability. Using CWE to declare the problem leads to CWE-264. Impacted is availability. The summary by CVE is:

The BEGIN regular expression in the awk script detector in magic/Magdir/commands in file before 5.15 uses multiple wildcards with unlimited repetitions, which allows context-dependent attackers to cause a denial of service (CPU consumption) via a crafted ASCII file that triggers a large amount of backtracking, as demonstrated via a file with many newline characters.

The weakness was disclosed 03/25/2014 as Commit ef2329c as not defined git commit (GIT Repository). It is possible to read the advisory at github.com. The identification of this vulnerability is CVE-2013-7345 since 03/23/2014. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1068 according to MITRE ATT&CK. The following code is the reason for this vulnerability:

regex		=^\\s*BEGIN\\s*[{]

The vulnerability scanner Nessus provides a plugin with the ID 73466 (Mandriva Linux Security Advisory : php (MDVSA-2014:075)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Mandriva Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 350812 (Amazon Linux Security Advisory for file: AL2012-2015-019).

Applying the patch ef2329c is able to eliminate this problem. The bugfix is ready for download at github.com. A possible mitigation has been published immediately after the disclosure of the vulnerability. The vulnerability will be addressed with the following lines of code:

regex		=^\\s{0,100}BEGIN\\s{0,100}[{]

The vulnerability is also documented in the vulnerability database at Tenable (73466). The entries 12846, 13405, 67620 and 67625 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: 5.3
VulDB Meta Temp Score: 5.1

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

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Access control
CWE: CWE-264
ATT&CK: T1068

Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-Dayunlockunlockunlockunlock
Todayunlockunlockunlockunlock

Nessus ID: 73466
Nessus Name: Mandriva Linux Security Advisory : php (MDVSA-2014:075)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 702873
OpenVAS Name: Debian Security Advisory DSA 2873-1 (file - several vulnerabilities
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Patch
Status: 🔍

Reaction Time: 🔍
Exposure Time: 🔍

Patch: ef2329c

Timelineinfo

03/23/2014 🔍
03/24/2014 +1 days 🔍
03/25/2014 +1 days 🔍
03/25/2014 +0 days 🔍
03/25/2014 +0 days 🔍
04/11/2014 +17 days 🔍
04/17/2014 +6 days 🔍
04/30/2019 +1839 days 🔍

Sourcesinfo

Product: php.org

Advisory: Commit ef2329c
Status: Not defined
Confirmation: 🔍

CVE: CVE-2013-7345 (🔍)
OVAL: 🔍

SecurityFocus: 66406 - PHP Fileinfo Component Remote Denial of Service Vulnerability

See also: 🔍

Entryinfo

Created: 04/17/2014 16:26
Updated: 04/30/2019 22:48
Changes: 04/17/2014 16:26 (71), 04/30/2019 22:48 (6)
Complete: 🔍

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!