I have an file uploader with filetype restrictions. The uploader checks the filetype by checking the file extension (like *.txt => allowed, *.exe => not allowed). I've now been told that it is a problem that you could simply edit the file extension and upload it even if it is a file that is not allowed.
So my question is: Is it even possible to detect a filetype without checking the file extension? Would it be a security risk in any way e.g. if it's possible to upload binaries with the extension edited?
I use Ajax/Javascript with MVC4 (so Windows Server). But I think it's a general question.
Sorry if that question might not be that challenging but I didn't know how I could find it out besides asking. (so no downvotes please ^^)