Lucene search
K

PHP 5.4.1 getimagesize() Denial of Service Memory leak

🗓️ 29 Apr 2012 00:00:00Reported by Manuel FernandezType 
zdt
 zdt
🔗 0day.today👁 45 Views

PHP 5.4.1 getimagesize() Denial of Service due to Memory lea

Code
PHP 5.4.1 getimagesize() Denial of Service Memory leak

Details:

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.

Vulnerable Versions:

PHP 5.4.1 and previous.


Patches/Workarounds:

The vendor was not notified of the issue.


Manuel Fernбndez, Security consultant at Informatica64 [ sourvivor () gmail com]

Francisco Oca, Security consultant at Informatica64 [ xyzthor () gmail com ]

Greetings to the friends group of every thursday in this 2x1 bar. We love
you guys.



#  0day.today [2018-01-02]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation