fl00d
06-24-2008, 06:13 AM
Hi,
I recently made an image upload script and I plan to enhance it with more features in the near future but first I want to make sure it is secure (or secure as can be). I've read a lot of posts saying some malicious user has taken advantage of their script and what can they do to fix it. I'd rather not have to make a post like that so that's why I'm making this one now - verify all my bases are covered :D
Here's the list of what my security comprises of: (in no specific order)
1) MIME validation - whitelist
2) Header 'Content-Type' validation using GD library
3) File extension validation - whitelist
4) File size validation
5) Stored in DB
Have I missed anything that I should be checking? Any suggestions to further improve security?
Thanks
-fl00d
I recently made an image upload script and I plan to enhance it with more features in the near future but first I want to make sure it is secure (or secure as can be). I've read a lot of posts saying some malicious user has taken advantage of their script and what can they do to fix it. I'd rather not have to make a post like that so that's why I'm making this one now - verify all my bases are covered :D
Here's the list of what my security comprises of: (in no specific order)
1) MIME validation - whitelist
2) Header 'Content-Type' validation using GD library
3) File extension validation - whitelist
4) File size validation
5) Stored in DB
Have I missed anything that I should be checking? Any suggestions to further improve security?
Thanks
-fl00d