|
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.
|