"Dennis Dryden" ddryden@gmail.com wrote:
Maybe im just being naive but couldn't you just check the file extension/mime type to make sure uploads are images, and not allow execution rights on uploads?
Close but no cookie: the sender sends the file extension and mime type (so they can't be trusted), while things like PHP modules usually execute files without needing execution rights, so you need to explicitly switch them off.
So, this is a PITA. Anyone writing an apache module to stop things from server-writeable directories running?
Regards,