Red Hat Bugzilla – Bug 182719
ImageCreateFromGif does not clean up its temporary file
Last modified: 2007-11-30 17:07:23 EST
Description of problem:
Version-Release number of selected component (if applicable):
Use the function ImageCreateFromGif
Steps to Reproduce:
1. Create a PHP script that uses the function ImageCreateFromGif
The tempfile created by ImageCreateFromGif still exists
No tempfiles should remain
This causes a full /tmp partition on webservers that use the
ImageCreateFromGif function. This leads to server problems and can be used
as a DoS attack on the webserver by a local user. This is especially important
for webhosting providers like us, where there are many 'external' users who
can upload PHP scripts.
The bug has been fixed by the PHP developers on 2004/11/02, so I am very
disappointed that Red Hat has nog included this (imho important) fix yet.
The diff in on the supplied URL.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
*** Bug 169771 has been marked as a duplicate of this bug. ***
*** Bug 189165 has been marked as a duplicate of this bug. ***