Is it possible to exploit a file upload with whitelist and filename hashing?

I have a small web application. Because it is necessary to upload some files I check the file extensions with a whitelist (tgz, jpg, png, pdf, zip, rar, txt, gif, py, c, rb). In addition to that, I hash the filenames with md5 so e.g. when… Continue reading Is it possible to exploit a file upload with whitelist and filename hashing?

is it safe to allow external images to be attached to Blog or any Web content?

I am filtering all images that attached to any content of my blog:

Check for file extension.
Check content type using $finfo = finfo_open(FILEINFO_MIME_TYPE);
I also save the image temporary on my server and check the size … Continue reading is it safe to allow external images to be attached to Blog or any Web content?