Re: Secure uploads tutorial

From: Date: Wed, 17 Dec 2008 15:45:31 +0000
Subject: Re: Secure uploads tutorial
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-284731@lists.php.net to get a copy of this message
At 1:55 PM +1100 12/17/08, Tim Starling wrote:
There are some file types, such as .png and .wav, where that approach is not at all secure. The file command will tell you that the file is image/png, but IE 6 will detect it as text/html and run scripts in it.
Oh, I see the problem (I think). I was thinking it was a server-side problem -- IOW, how do you stop someone from uploading a clever script that the server will somehow run. But instead, this is how to stop someone from uploading a script that will become evil when someone else views it using IE. Is that it? Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#284731) next »