Secunia Logo  
 
PHP Memory Leak and Arbitrary File Location Upload Vulnerabilities
Secunia Advisory: SA12560
Release Date: 2004-09-18
Last Update: 2004-10-25
Popularity: 20,834 views

Critical:
Moderately critical
Impact: Exposure of sensitive information
System access
Where: From remote
Solution Status: Vendor Patch

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

Subscribe: Instant alerts on relevant vulnerabilities


Description:
Two vulnerabilities have been reported in PHP, which can be exploited by malicious people to disclose sensitive information or potentially upload files to arbitrary locations.

1) A parsing error in the handling of GET, POST and COOKIE (GPC) variables in "php_variables.c" can be exploited by supplying a specially crafted parameter name ending with an open bracket to disclose memory.

2) The "$_FILES" array specifies locations for uploaded files. The problem is that the array can be overwritten by a specially crafted header. This can potentially be exploited to upload files to arbitrary locations.

Successful exploitation requires a PHP script, which uses the "$_FILES" array for e.g. moving uploaded files.

The vulnerabilities have been reported in version 5.0.1. Other versions may also be affected.

Solution:
Update to version 4.3.9 or 5.0.2.
http://www.php.net/

Provided and/or discovered by:
Stefano Di Paola

Changelog:
2004-09-30: Updated "Solution" and "Description" sections.
2004-10-25: Removed 4.0.x and 4.1.x branches as affected.


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. OpenSSL DSA / ECDSA "EVP_VerifyFinal()" Spoofing Vulnerability // 72 views
2. Symantec Mail Security for SMTP Response Handling Denial of Service // 47 views
3. SAP GUI TabOne ActiveX Control Caption List Buffer Overflow // 42 views
4. Joomla! "X_CMS_LIBRARY_PATH" Directory Traversal Vulnerability // 33 views
5. Red Hat update for openssl // 31 views
6. vBulletin Personal Sticky Threads Add-on Security Bypass Vulnerability // 27 views
7. ComponentOne SizerOne CTab ActiveX Control Caption List Buffer Overflow // 26 views
8. Nokia Phones SMS Denial of Service Vulnerability // 25 views
9. TSC2 Help Desk CTab ActiveX Control Caption List Buffer Overflow // 24 views
10. Fedora update for proftpd // 24 views