Re: Re: Security Concerns with Uploaded Images:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 23, 2006 9:52 am, tedd wrote:
> At 9:45 AM +0100 5/23/06, Rory Browne wrote:
> I'm not disagreeing with you, but how would that work? The file would
> still have a suffix of ".gif" and as such wouldn't be recognized as
> code to execute.

Unless you have ANOTHER bug somewhere in those million lines of PHP
code...

Which might maybe let you eval() that, or manage to include it or...

Why risk it?

Defense in depth.

It's not like a call to http://getimagesize is gonna kill you.

Even moving the image out of web tree and using readfile is fine for
all but the busiest servers.

[shrug]

I don't understand why people are so resistant to something so simple
that adds a layer of defense.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux