Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Manu (sourvivorgmail.com)
Date: Sun Apr 29 2012 - 12:58:30 CDT
PHP Denial of Service - Memory leak in getimagesize().
Manuel Fernández, Security consultant at Informatica64 [ sourvivorgmail.com]
Francisco Oca, Security consultant at Informatica64 [ xyzthorgmail.com ]
Greetings to the friends group of every thursday in this 2x1 bar. We love
Getimagesize function is used to determine the size of an image. It recives
one parameter as URI. Getimagesize() doesn't implement any function to
verify if the remote file that is been downloaded is an image nor if the
size is higher than desired, so it could be possible to force the PHP
engine to download (through Getimagesize()) a huge file, causing a DoS (in
RAM and CPU) in the webserver.
This exploit has been tested successfully in few enviorments as forums
PHPBB, which uses this function when you're going to set an avatar, due
that PHPBB tries to calculate the file size before changing the avatar.
PHP 5.4.1 and previous.
The vendor was not notified of the issue.
Full-Disclosure - We believe in it.
Hosted and sponsored by Secunia - http://secunia.com/