{"id":"CVE-2006-4023","state":"PUBLISHED","title":"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 in","description":"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.","publishedAt":"2006-08-09T00:00:00.000Z","updatedAt":"2024-08-07T18:57:43.861Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://www.securityfocus.com/archive/1/441708/100/100/threaded","http://www.securityfocus.com/archive/1/441529/100/100/threaded","http://retrogod.altervista.org/php_ip2long.htm","http://securitytracker.com/id?1016609"],"weaknesses":[],"ingestedAt":"2026-10-29T19:27:51.196Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2006/4xxx/CVE-2006-4023.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2006-4023","state":"PUBLISHED","datePublished":"2006-08-09T00:00:00.000Z","dateUpdated":"2024-08-07T18:57:43.861Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2006-08-08T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://www.securityfocus.com/archive/1/441708/100/100/threaded","name":"20060729 Re: PHP ip2long() function circumvention","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://www.securityfocus.com/archive/1/441529/100/100/threaded","name":"20060729 PHP ip2long() function circumvention","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://retrogod.altervista.org/php_ip2long.htm","tags":["x_refsource_MISC"]},{"url":"http://securitytracker.com/id?1016609","name":"1016609","tags":["vdb-entry","x_refsource_SECTRACK"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2018-10-17T20:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2006-07-29T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2006-4023","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"20060729 Re: PHP ip2long() function circumvention","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/441708/100/100/threaded"},{"name":"20060729 PHP ip2long() function circumvention","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/441529/100/100/threaded"},{"name":"http://retrogod.altervista.org/php_ip2long.htm","refsource":"MISC","url":"http://retrogod.altervista.org/php_ip2long.htm"},{"name":"1016609","refsource":"SECTRACK","url":"http://securitytracker.com/id?1016609"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.securityfocus.com/archive/1/441708/100/100/threaded","name":"20060729 Re: PHP ip2long() function circumvention","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/441529/100/100/threaded","name":"20060729 PHP ip2long() function circumvention","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://retrogod.altervista.org/php_ip2long.htm","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://securitytracker.com/id?1016609","name":"1016609","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-07T18:57:43.861Z"}}]}}}