PHP 4.3.3/5.0.2/5.1.4 index.php ip2long sql injection

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

Summaryinfo

A vulnerability classified as critical has been found in PHP 4.3.3/5.0.2/5.1.4. This issue affects the function ip2long of the file index.php. Performing a manipulation results in sql injection. This vulnerability is known as CVE-2006-4023. Remote exploitation of the attack is possible. No exploit is available.

Detailsinfo

A vulnerability was found in PHP 4.3.3/5.0.2/5.1.4 (Programming Language Software). It has been classified as critical. This affects the function ip2long of the file index.php. The manipulation with an unknown input leads to a sql injection vulnerability. CWE is classifying the issue as CWE-89. The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. This is going to have an impact on confidentiality. The summary by CVE is:

The ip2long function in PHP 5.1.4 and earlier may incorrectly validate an arbitrary string and return a valid network IP address, which allows remote attackers to obtain network information and facilitate other attacks, as demonstrated using SQL injection in the X-FORWARDED-FOR Header in index.php in MiniBB 2.0. NOTE: it could be argued that the ip2long behavior represents a risk for security-relevant issues in a way that is similar to strcpy s role in buffer overflows, in which case this would be a class of implementation bugs that would require separate CVE items for each PHP application that uses ip2long in a security-relevant manner.

The weakness was published 08/08/2006 as not defined posting (Bugtraq). It is possible to read the advisory at securityfocus.com. This vulnerability is uniquely identified as CVE-2006-4023 since 08/08/2006. 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 of the vulnerability are known, but there is no available exploit. The pricing for an exploit might be around USD $0-$5k at the moment (estimation calculated on 07/13/2021). The attack technique deployed by this issue is T1505 according to MITRE ATT&CK.

By approaching the search of inurl:index.php it is possible to find vulnerable targets with Google Hacking. The vulnerability scanner Nessus provides a plugin with the ID 17715 (PHP ip2long Function String Validation Weakness), which helps to determine the existence of the flaw in a target environment. It is assigned to the family CGI abuses.

There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.

The vulnerability is also documented in the databases at X-Force (28169), Tenable (17715), SecurityTracker (ID 1016609†) and Vulnerability Center (SBV-28848†). 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: 5.3

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

CVSSv2info

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

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

NVD Base Score: 🔍

Exploitinginfo

Class: Sql injection
CWE: CWE-89 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined
Google Hack: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 17715
Nessus Name: PHP ip2long Function String Validation Weakness
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍

Threat Intelligenceinfo

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

Countermeasuresinfo

Recommended: no mitigation known
Status: 🔍

0-Day Time: 🔍

Timelineinfo

07/31/2006 🔍
08/08/2006 +8 days 🔍
08/08/2006 +0 days 🔍
08/08/2006 +0 days 🔍
08/08/2006 +0 days 🔍
12/28/2010 +1603 days 🔍
11/18/2011 +325 days 🔍
03/12/2015 +1210 days 🔍
07/13/2021 +2315 days 🔍

Sourcesinfo

Product: php.org

Advisory: securityfocus.com
Status: Not defined

CVE: CVE-2006-4023 (🔍)
GCVE (CVE): GCVE-0-2006-4023
GCVE (VulDB): GCVE-100-31695
X-Force: 28169
SecurityTracker: 1016609 - PHP Error in ip2long() May Let Remote Users Inject SQL Commands Via Applications That Use the Function for Validation
Vulnerability Center: 28848 - The ip2long Function in PHP 5.1.4 and Earlier Remote Information Disclosure Vulnerability, Medium

Entryinfo

Created: 03/12/2015 15:51
Updated: 07/13/2021 08:33
Changes: 03/12/2015 15:51 (54), 03/12/2017 08:51 (10), 07/13/2021 08:33 (3)
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.

Might our Artificial Intelligence support you?

Check our Alexa App!