Secunia Logo
Netsikker nu! 2008
 
PHP "sscanf()" Code Execution Safe Mode Bypass
Secunia Advisory: SA21403
Release Date: 2006-08-08
Last Update: 2006-08-18
Popularity: 13,446 views

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

Software:PHP 4.4.x
PHP 5.1.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-4020


Description:
Heintz has discovered a vulnerability in PHP, which potentially can be exploited by malicious, local users to bypass certain security restrictions.

The vulnerability is caused due to an array boundary error in the "sscanf()" PHP function in the processing of the "$1s" format specifier. This can be exploited to reference freed memory by passing an variable as argument which has been unset.

Successful exploitation may e.g. allow bypass of the safe mode protection by executing arbitrary code.

The vulnerability has been confirmed in versions 5.1.4 and 4.4.3. Prior versions may also be affected.

Solution:
Update to version 4.4.4 or 5.1.5.
http://www.php.net/downloads.php

Provided and/or discovered by:
Heintz

Changelog:
2006-08-10: Added CVE reference.
2006-08-18: Updated "Solution" section.

Original Advisory:
http://bugs.php.net/bug.php?id=38322


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

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. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 59 views
2. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 57 views
3. FUJITSU Interstage Products Apache Tomcat Security Bypass // 41 views
4. CA ARCserve Backup Multiple Vulnerabilities // 40 views
5. DFF PHP Framework API "DFF_config[dir_include]" File Inclusion Vulnerabilities // 38 views
6. CUPS Multiple Vulnerabilities // 38 views
7. Red Hat update for cups // 34 views
8. phpJobScheduler "installed_config_file" File Inclusion Vulnerabilities // 33 views
9. Gentoo Portage Insecure Python Module Search Path Security Issue // 26 views
10. ScriptsEz Easy Image Downloader "id" File Disclosure Vulnerability // 25 views