PHP multipart/form-data POST handler buffer overflow
| php-multipart-handler-bo (9635) |
Description:
PHP is vulnerable to a buffer overflow in the multipart/form-data handler code, which could allow a remote attacker to gain control over an affected Web server or cause a denial of service attack. By sending a malformed HTTP POST request, a remote attacker could overflow a buffer and execute arbitrary code on the Web server or possibly cause the Web server to crash.
Consequences:
Gain Access
Remedy:
Upgrade to the latest version of PHP (4.2.2 or later), available from the PHP Web site. See References.
For HP-UX 11.00, 11.11, 11.20, and 11.22:
Install the appropriate product bundle for your system, as listed in Hewlett-Packard Company Security Bulletin HPSBUX0208-207. See References.For FreeBSD Ports Collection:
Upgrade to the latest ports collection, as listed in FreeBSD Security Notice FreeBSD-SN-02:05. See References.
References:
- CERT Advisory CA-2002-21: Vulnerability in PHP.
- CIAC Information Bulletin M-108: Vulnerability in HP Apache Server PHP.
- e-matters GmbH Security Advisory 02/2002: PHP remote vulnerability.
- FreeBSD Security Notice FreeBSD-SN-02:05 : security issues in ports.
- Hewlett-Packard Company Security Bulletin HPSBUX0208-207: Sec. Vulnerability in HP Apache Server PHP.
- PHP Security Advisory July 22, 2002: Vulnerability in PHP versions 4.2.0 and 4.2.1 .
- PHP Web site: PHP: Downloads.
- BID-5278: PHP HTTP POST Incorrect MIME Header Parsing Vulnerability
- CVE-2002-0717: PHP 4.2.0 and 4.2.1 allows remote attackers to cause a denial of service and possibly execute arbitrary code via an HTTP POST request with certain arguments in a multipart/form-data form, which generates an error condition that is not properly handled and causes improper memory to be freed.
- OSVDB ID: 14434: PHP HTTP POST Request multipart/form-data Overflow
- US-CERT VU#929115: PHP fails to properly parse the headers of HTTP POST requests
Platforms Affected:
- FreeBSD FreeBSD Ports Collection
- HP HP-UX 11
- HP HP-UX 11.04
- HP HP-UX 11.11
- PHP PHP 4.2.0
- PHP PHP 4.2.1
Reported:
Jul 22, 2002
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this
