PHP up to 5.2.3 readfile 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 critical, was found in PHP (Programming Language Software). This affects the function readfile. The manipulation with an unknown input leads to a access control vulnerability. CWE is classifying the issue as CWE-264. This is going to have an impact on confidentiality. The summary by CVE is:

PHP 5 before 5.2.3 does not enforce the open_basedir or safe_mode restriction in certain cases, which allows context-dependent attackers to determine the existence of arbitrary files by checking if the readfile function returns a string. NOTE: this issue might also involve the realpath function.

The bug was discovered 05/24/2007. The weakness was released 06/01/2007 (Website). The advisory is shared at redhat.com. This vulnerability is uniquely identified as CVE-2007-3007 since 06/04/2007. The exploitability is told to be easy. It is possible to initiate the attack remotely. No form of authentication is needed for exploitation. Technical details are known, but no exploit is available. MITRE ATT&CK project uses the attack technique T1068 for this issue.

The vulnerability was handled as a non-public zero-day exploit for at least 9 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 27759 (Fedora 7 : php-5.2.4-1.fc7 (2007-2215)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Fedora Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 165067 (SUSE Security Update for php4, php5 (SUSE-SA:2007:044)).

Upgrading to version 5.2.3 eliminates this vulnerability. A possible mitigation has been published 4 months after the disclosure of the vulnerability.

The vulnerability is also documented in the databases at X-Force (35001) and Tenable (27759). Entries connected to this vulnerability are available at 35549, 36639 and 36028.

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: 27759
Nessus Name: Fedora 7 : php-5.2.4-1.fc7 (2007-2215)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

OpenVAS ID: 861128
OpenVAS Name: Family Connections argv[1] Parameter Remote Arbitrary Command Execution Vulnerability
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: 🔍

Upgrade: PHP 5.2.3

Timelineinfo

05/24/2007 🔍
05/24/2007 +0 days 🔍
05/24/2007 +0 days 🔍
06/01/2007 +8 days 🔍
06/01/2007 +0 days 🔍
06/01/2007 +0 days 🔍
06/03/2007 +1 days 🔍
06/04/2007 +1 days 🔍
06/04/2007 +0 days 🔍
09/18/2007 +106 days 🔍
11/06/2007 +49 days 🔍
03/15/2015 +2686 days 🔍
07/20/2019 +1588 days 🔍

Sourcesinfo

Product: php.org

Advisory: redhat.com
Status: Not defined
Confirmation: 🔍

CVE: CVE-2007-3007 (🔍)
X-Force: 35001
Vulnerability Center: 15271 - PHP before 5.2.3 Remote Information Disclosure, Medium
SecurityFocus: 24259 - PHP Realpath() Safe_Mode and Open_Basedir Restriction Bypass Vulnerability
Secunia: 25456
OSVDB: 36084 - PHP realpath() Function Security Restriction Bypass

See also: 🔍

Entryinfo

Created: 03/15/2015 15:58
Updated: 07/20/2019 09:47
Changes: 03/15/2015 15:58 (82), 07/20/2019 09:47 (2)
Complete: 🔍

Discussion

No comments yet. Languages: en.

Please log in to comment.

Might our Artificial Intelligence support you?

Check our Alexa App!