PHP 5.0.2 php_variables.c privileges management

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

Summaryinfo

A vulnerability has been found in PHP 5.0.2 and classified as problematic. Affected by this issue is some unknown functionality of the file php_variables.c. This manipulation causes privileges management. This vulnerability is registered as CVE-2004-0958. Furthermore, an exploit is available. The affected component should be upgraded.

Detailsinfo

A vulnerability classified as problematic was found in PHP 5.0.2 (Programming Language Software). Affected by this vulnerability is an unknown part of the file php_variables.c. The manipulation with an unknown input leads to a privileges management vulnerability. The CWE definition for the vulnerability is CWE-269. The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. As an impact it is known to affect confidentiality. The summary by CVE is:

php_variables.c in PHP before 5.0.2 allows remote attackers to read sensitive memory contents via (1) GET, (2) POST, or (3) COOKIE GPC variables that end in an open bracket character, which causes PHP to calculate an incorrect string length.

The bug was discovered 09/15/2004. The weakness was published 11/03/2004 by Stefano Di Paola with isec (Website). It is possible to read the advisory at xforce.iss.net. This vulnerability is known as CVE-2004-0958 since 10/13/2004. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a public exploit are known. The attack technique deployed by this issue is T1068 according to MITRE ATT&CK.

It is possible to download the exploit at exploit-db.com. It is declared as proof-of-concept. The vulnerability was handled as a non-public zero-day exploit for at least 49 days. During that time the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 16041 (RHEL 3 : php (RHSA-2004:687)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Red Hat Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 12187 (PHP Memory Leak and Arbitrary File Location Upload Vulnerabilities).

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

The vulnerability is also documented in the databases at X-Force (17393), Exploit-DB (24656), Tenable (16041), SecurityFocus (BID 11334†) and OSVDB (12601†). Similar entry is available at VDB-22376. Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Type

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 5.3
VulDB Meta Temp Score: 4.8

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

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Privileges management
CWE: CWE-269 / CWE-266
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 16041
Nessus Name: RHEL 3 : php (RHSA-2004:687)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍
Nessus Port: 🔍

OpenVAS ID: 52359
OpenVAS Name: php -- php_variables memory disclosure
OpenVAS File: 🔍
OpenVAS Family: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Upgrade: PHP 5.0.2

Timelineinfo

09/15/2004 🔍
09/15/2004 +0 days 🔍
09/15/2004 +0 days 🔍
09/15/2004 +0 days 🔍
10/13/2004 +28 days 🔍
11/03/2004 +21 days 🔍
11/03/2004 +0 days 🔍
12/21/2004 +48 days 🔍
12/23/2004 +2 days 🔍
01/26/2005 +34 days 🔍
04/14/2015 +3730 days 🔍
02/01/2025 +3581 days 🔍

Sourcesinfo

Product: php.org

Advisory: xforce.iss.net
Researcher: Stefano Di Paola
Organization: isec
Status: Confirmed

CVE: CVE-2004-0958 (🔍)
GCVE (CVE): GCVE-0-2004-0958
GCVE (VulDB): GCVE-100-22375

OVAL: 🔍

X-Force: 17393
SecurityFocus: 11334 - PHP PHP_Variables Remote Memory Disclosure Vulnerability
Secunia: 12560
OSVDB: 12601 - CVE-2004-0958 - PHP - Information Disclosure Issue
SecurityTracker: 1011279
Vulnerability Center: 6919 - PHP Arbitrary Memory Read via PHP_Variables with Open Bracket Character, Medium

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

Entryinfo

Created: 04/14/2015 13:22
Updated: 02/01/2025 22:51
Changes: 04/14/2015 13:22 (75), 05/29/2019 16:10 (14), 02/01/2025 22:51 (25)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!