PHP ip2long Function String Validation Weakness

medium Nessus Plugin ID 17715
New! Vulnerability Priority Rating (VPR)

Tenable calculates a dynamic VPR for every vulnerability. VPR combines vulnerability information with threat intelligence and machine learning algorithms to predict which vulnerabilities are most likely to be exploited in attacks. Read more about what VPR is and how it is different from CVSS.

VPR Score: 2.4


The remote web server uses a version of PHP that does not properly validate user strings.


According to its banner, the 'ip2long()' function in the version of PHP installed on the remote host may incorrectly validate an arbitrary string and return a valid network IP address.


Upgrade to PHP version 5.1.5 or later.

See Also

Plugin Details

Severity: Medium

ID: 17715

File Name: php_ip2long_sql_injection.nasl

Version: 1.8

Type: remote

Family: CGI abuses

Published: 11/18/2011

Updated: 1/19/2021

Dependencies: 48243

Risk Information

Risk Factor: Medium

VPR Score: 2.4

CVSS Score Source: CVE-2006-4023

CVSS v2.0

Base Score: 5

Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS v3.0

Base Score: 5.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Vulnerability Information

CPE: cpe:/a:php:php

Required KB Items: www/PHP, Settings/PCI_DSS, installed_sw/PHP

Exploit Available: undefined

Patch Publication Date: 8/17/2006

Vulnerability Publication Date: 7/29/2006

Reference Information

CVE: CVE-2006-4023