Secunia Logo
Netsikker nu! 2008
 
PHP CURL "open_basedir" Security Bypass Vulnerability
Secunia Advisory: SA13023
Release Date: 2004-10-29
Last Update: 2005-04-01
Popularity: 14,289 views

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

Software:PHP 4.0.x
PHP 4.1.x
PHP 4.2.x
PHP 4.3.x
PHP 5.0.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2004-1392


Description:
FraMe has discovered a vulnerability in PHP, which can be exploited by malicious, local users to access files outside the "open_basedir" root.

The vulnerability is caused due to some CURL functions not obeying the "open_basedir" directive, which is designed to restrict PHP scripts in certain environments from accessing files outside the defined root directories. This can be exploited to access files outside the "open_basedir" root by using the functions "curl_init()" and "curl_exec()".

The vulnerability has been confirmed on PHP version 4.3.8 with CURL 7.10.6. Other versions may also be affected.

Solution:
Update to version 4.3.11 or 5.0.4.
http://www.php.net/downloads.php

Provided and/or discovered by:
FraMe

Changelog:
2005-02-07: Added CVE reference.
2005-04-01: Updated "Solution" section.


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. phpBB "gen_rand_string()" Predictable RNG Weakness // 114 views
2. phpBB reveals user IPs // 60 views
3. phpBB "url" bbcode Script Insertion Vulnerability // 50 views
4. phpBB Avatar Functions Information Disclosure and Deletion // 39 views
5. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 35 views
6. CA ARCserve Backup Multiple Vulnerabilities // 33 views
7. phpBB Avatar Script Insertion Vulnerability // 32 views
8. CUPS Multiple Vulnerabilities // 30 views
9. phpBB BBcode "url" Script Insertion Vulnerability // 28 views
10. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 28 views