Re: Interesting article about PHP security exploit by GIF files
| From: | Guillaume Theoret | Date: | Wed, 20 Jun 2007 18:32:31 +0000 |
| Subject: | Re: Interesting article about PHP security exploit by GIF files | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257517@lists.php.net to get a copy of this message | ||
Thanks for the link.
I got worried for a second that my code could be exploited so I did a
quick check to make sure that mime-types were correct. (I check the
mime type to make sure it's an image, not the file extension.) I
renamed a .jpg file .jpg.php and uploaded it and got application/x-php
as a mime type.
Is there a way to fake the mime type of what you've uploaded so that
this exploit is still possible? Should I be checking both mime types
and file extensions?
Thanks
On 6/20/07, Daniel Brown <parasane@gmail.com> wrote:
On 6/20/07, Jochem Maas <jochem@iamjochem.com> wrote: Daniel Brown wrote:On 6/20/07, Tijnema <tijnema@gmail.com> wrote:exactly what are those legitimate reasons for uploading and executing php on other peoples server with authorization? :-> my defense lawyer might be interested ;-)I've been doing stuff like that for legitimate reasons for about two years.... I thought everyone knew about it.Hi all, Just received a mail from phpclasses, which pointed to this very interesting article[1]. Seems good to know for starters ;) The experts around here probably already know this way of exploits. Tijnema [1] http://www.phpclasses.org/blog/post/67-PHP-security-exploit-with-GIF-images.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpNo, not the upload and execution, per se, but rather using imagesto contain processable PHP code. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php