Secunia Logo
Netsikker nu! 2008
 
PHP Multiple Code Execution Vulnerabilities
Secunia Advisory: SA24542
Release Date: 2007-03-16
Last Update: 2007-05-04
Popularity: 10,857 views

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

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2007-1484
CVE-2007-1581
CVE-2007-1582
CVE-2007-1883


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


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
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.
  
Latest Advisories

Today
New advisories: 8
New vulnerabilities: 27
Updated advisories: 11

Highly // 127 views
Opera Multiple Vulnerabilities
Moderately // 89 views
Red Hat update for condor
Moderately // 88 views
Condor Multiple Vulnerabilities
Moderately // 108 views
Gentoo update for wordnet
Moderately // 127 views
Red Hat update for kernel

7th Oct, 2008
New advisories: 19
New vulnerabilities: 68
Updated advisories: 61

Moderately // 478 views
Debian update for php5
Moderately // 373 views
Atarone CMS Multiple Vulnerabilities

Solutions | More...  


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.

Most Popular - 3 Hours

1. Adobe Flash Player "Clickjacking" Security Bypass Vulnerability // 153 views
2. Red Hat update for kernel // 112 views
3. Gentoo update for wordnet // 98 views
4. Opera Multiple Vulnerabilities // 89 views
5. Red Hat update for condor // 80 views
6. Hero DVD Player M3U Processing Buffer Overflow Vulnerability // 79 views
7. Condor Multiple Vulnerabilities // 79 views
8. Debian update for php5 // 48 views
9. PHP Realtor "v_cat" SQL Injection Vulnerability // 43 views
10. Zeroboard Multiple Vulnerabilities // 32 views