Secunia - Stay Secure
Gartner
Home Corporate Website Jobs Updated Mailing Lists RSS Blog  Online Shop Advertise
Software Inspectors
  Scan Online
  Personal (PSI)
  Network (NSI 2.0)

Solutions For
  Security Professionals
  Security Vendors

Free Solutions For
  Open Communities
  Journalists & Media

Secunia Advisories
  Search
  Historic Advisories
  Listed By Product
  Listed By Vendor
  Statistics / Graphs
  Secunia Research
  Report Vulnerability
  About Advisories

Virus Information
  Chronological List
  Last 10 Virus Alerts
  About Virus Information

Secunia Customers
  Customer Area


PHP Integer Overflow Vulnerability and Security Bypass Advisory Available in Danish  Advisory Available in German 

Secunia Advisory: SA25456  
Release Date: 2007-06-01
Last Update: 2007-09-06

Critical:
Less critical
Impact: Security Bypass
Privilege escalation
Where: Local system
Solution Status: Vendor Patch

Software:PHP 5.2.x

CVE reference:CVE-2007-2872 (Secunia mirror)
CVE-2007-3007 (Secunia mirror)
CVE-2007-4660 (Secunia mirror)
CVE-2007-4661 (Secunia mirror)

Want to know the next time vulnerabilities are fixed in this product?
- Companies can be alerted via email and SMS!


Description:
A weakness and a vulnerability have been reported in PHP 5, which can be exploited by malicious, local users to bypass certain security restrictions.

1) An integer overflow error in the "chunk_split()" function can be exploited to cause a heap based buffer overflow.

Successful exploitation of this vulnerability may allow execution of arbitrary code, which can lead to security restrictions, such as the "disable_functions" directive, being bypassed.

2) An error in the "realpath()" function allows bypassing of the "open_basedir" restriction and identifying the existence of files.

Do you have this product installed on your home computer? Scan using the free Personal Software Inspector. Check if a vulnerable version is installed on computers in your corporate network, scan using the Network Software Inspector.

Solution:
Update to version 5.2.4.
http://www.php.net/downloads.php

Provided and/or discovered by:
The vendor credits:
1) Gerhard Wagner, SEC Consult
2) bugs dot php dot net at chsc dot dk

Changelog:
2007-06-04: Added information provided by SEC Consult. Added link to "Original Advisory" section. Updated "Criticality".
2007-06-06: Updated "Solution" section based on additional information provided by Stefan Esser.
2007-06-12: Added CVE reference.
2007-08-31: Updated the "Solution" section.
2007-09-06: Added CVE reference.

Original Advisory:
PHP:
http://www.php.net/releases/5_2_3.php

SEC Consult:
http://www.sec-consult.com/291.html



Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.

18 Related Secunia Security Advisories, displaying 10

1. PHP Multiple Vulnerabilities
2. PHP Multiple Vulnerabilities
3. PHP COM Objects Security Bypass
4. PHP Multiple Vulnerabilities
5. PHP "glob()" Code Execution Vulnerability
6. PHP Multiple Extensions Buffer Overflow Vulnerabilities
7. PHP crypt() Race Condition Vulnerability
8. PHP "gdPngReadData()" Truncated PNG Data Denial of Service
9. PHP SOAP Extension HTTP Authentication Weak Nonce
10. PHP Multiple Vulnerabilities

Show all related advisories


Send Feedback to Secunia

If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.








Secunia PSI
Scan | Patch | Track
Free Download

Secunia Poll

Do you think it's important to read Setup/User Guides for applications for use within your network?


See Results   


Most Popular Advisories

1.
OpenBSD BIND Query Port DNS Cache Poisoning
2.
Drupal Session Fixation Vulnerability
3.
Linux Kernel LDT Buffer Size Handling Vulnerability
4.
Red Hat update for kernel
5.
dnsmasq Denial of Service and DNS Cache Poisoning
6.
Apple Safari Cross-Domain Cookie Injection Vulnerability
7.
YouTube Blog Multiple Vulnerabilities
8.
Debian update for clamav
9.
Red Hat update for thunderbird
10.
Ubuntu update for php





Vulnerability Management - Terms & Conditions - Copyright 2002-2008 Secunia - Compliance - Contact Secunia