Secunia Logo  
 
PHP "curl_init()" Safe Mode Bypass Weakness
Secunia Advisory: SA20337
Release Date: 2006-05-30
Last Update: 2006-08-18
Popularity: 13,217 views

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

Software:PHP 4.4.x
PHP 5.0.x
PHP 5.1.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-2563


Description:
Maksymilian Arciemowicz has discovered a weakness in PHP, which can be exploited by malicious, local users to bypass certain security restrictions.

The weakness is caused due to an error in the handling of null byte characters in the "curl_init()" PHP function in the curl extension. This can be exploited to bypass the safe mode protection and access other users' files located in the same directory as the running script.

Successful exploitation requires that the curl extension is installed and enabled.

The weakness has been confirmed in versions 5.0.5 and 5.1.4, and has also been reported in version 4.4.2. Other versions may also be affected.

Solution:
PHP 4.4.x:
Update to version 4.4.3.
http://www.php.net/downloads.php

PHP 5.1.x:
Update to version 5.1.5.
http://www.php.net/downloads.php

Do not rely on the safe mode protection for files located in the same directory as untrusted scripts.

Provided and/or discovered by:
Maksymilian Arciemowicz

Changelog:
2006-05-31: Added CVE reference.
2006-08-03: Updated "Solution" section.
2006-08-18: Updated "Solution" section.

Original Advisory:
http://securityreason.com/achievement_securityalert/39


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: 40
Updated advisories: 8

Highly // 4 views
Debian update for icedove
Moderately // 18 views
Fedora update for openssl
Moderately // 21 views
QuoteBook Multiple Vulnerabilities
Less // 19 views
Fedora update for samba
Moderately // 20 views
Ubuntu update for openssl

7th Jan, 2009
New advisories: 31
New vulnerabilities: 90
Updated advisories: 37

Moderately // 349 views
Red Hat update for xterm

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. OpenSSL DSA / ECDSA "EVP_VerifyFinal()" Spoofing Vulnerability // 84 views
2. Joomla! "X_CMS_LIBRARY_PATH" Directory Traversal Vulnerability // 79 views
3. SAP GUI TabOne ActiveX Control Caption List Buffer Overflow // 46 views
4. HP OpenView Network Node Manager Multiple Vulnerabilities // 37 views
5. Symantec Mail Security for SMTP Response Handling Denial of Service // 33 views
6. Red Hat update for openssl // 31 views
7. vBulletin Personal Sticky Threads Add-on Security Bypass Vulnerability // 21 views
8. PollHelper "poll.inc" Information Disclosure Security Issue // 21 views
9. BlogHelper "common_db.inc" Information Disclosure Security Issue // 20 views
10. Red Hat update for dbus // 19 views