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 Multiple Code Execution Vulnerabilities Advisory Available in Danish  Advisory Available in German 

Secunia Advisory: SA24542  
Release Date: 2007-03-16
Last Update: 2007-05-04

Critical:
Less critical
Impact: Exposure of sensitive information
Privilege escalation
Where: Local system
Solution Status: Partial Fix

Software:PHP 4.4.x
PHP 5.2.x

CVE reference:CVE-2007-1484 (Secunia mirror)
CVE-2007-1581 (Secunia mirror)
CVE-2007-1582 (Secunia mirror)
CVE-2007-1883 (Secunia mirror)



Description:
Stefan Esser has discovered some vulnerabilities and a weakness in PHP, which can be exploited by malicious users to disclose potentially sensitive information or to gain escalated privileges.

1) An error in the "array_user_key_compare()" function where key references are incorrectly destroyed can be exploited to cause memory corruption.

2) An error in the handling of resource data can be exploited to destroy and replace certain resources by interrupting the processing PHP function (e.g. functions of the GD extension). This allows read and write access to arbitrary memory addresses.

Successful exploitation of these vulnerabilities allows execution of arbitrary code, which can lead to security restrictions, such as the "disable_functions" directive, being bypassed.

3) An error in the handling of references in functions can be exploited to read arbitrary heap memory via a user space error handler interrupting e.g. the "iptcembed()" function.

The vulnerabilities are confirmed in version 5.2.1 and also reported in version 4.4.6. Other versions may also be affected.

Solution:
Update to version 5.2.2 or 4.4.7 to fix vulnerability #1. Grant only trusted users permissions to execute PHP code.

Provided and/or discovered by:
Stefan Esser

Changelog:
2007-03-20: Updated "Description" section and "Title". Added vulnerability #2.
2007-03-21: Added link to "Original Advisory" section.
2007-03-21: Added CVE reference.
2007-03-26: Added CVE reference.
2007-03-30: Updated "Description" section. Added weakness #3.
2007-04-12: Added CVE reference.
2007-05-04: Updated "Solution" section.

Original Advisory:
PHP:
http://www.php.net/releases/5_2_2.php
http://www.php.net/releases/4_4_7.php

MOPB:
1) http://www.php-security.org/MOPB/MOPB-24-2007.html

2) http://www.php-security.org/MOPB/MOPB-27-2007.html
http://www.php-security.org/MOPB/MOPB-28-2007.html

3) http://www.php-security.org/MOPB/MOPB-37-2007.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.

37 Related Secunia Security Advisories, displaying 10

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

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.
Mozilla Firefox Multiple Vulnerabilities
2.
Opera for Windows Unspecified Code Execution
3.
Mozilla Thunderbird Multiple Vulnerabilities
4.
VLC Media Player WAV Processing Integer Overflow
5.
PCRE pcre_compile.c Buffer Overflow Vulnerability
6.
GNOME Glib PCRE pcre_compile.c Buffer Overflow Vulnerability
7.
Fedora update for glib2
8.
Internet Explorer 7 Frame Location Handling Vulnerability
9.
Novell eDirectory ds.dlm Module Buffer Overflow
10.
UnixWare ReliantHA Privilege Escalation Vulnerabilities





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