note 30658 deleted from features.file-upload by googleguy

From: Date: Wed, 22 Aug 2012 01:56:27 +0000
Subject: note 30658 deleted from features.file-upload by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190169@lists.php.net to get a copy of this message
Note Submitter: diegoful at yahoo dot com ---- SECURITY CONSIDERATION: If you are saving all uploaded files to a directory accesible with an URL, remember to filter files not only by mime-type (e.g. image/gif), but also by extension. The mime-type is reported by the client, if you trust him, he can upload a php file as an image and then request it, executing malicious code. I hope I am not giving hackers a good idea anymore than I am giving it to good-intended developers. Cheers.

« previous php.notes (#190169) next »