I run an image hosting service and I have filtered out only certain file types to be uploaded (.jpg/jpeg, .gif, .bmp, .png). However, images can be easily manipulated to run malicious code -- and I am trying to come up with a way to verify that the image is, indeed, a valid image.
Any suggestions?
Thanks!