Is it (still) a security flaw to check MIME only by extension?

33 Views Asked by At

I was working on an HTTP-Server in rust and realized that there aren't any libraries that properly check the MIME type for Files without a "magic number" like JPEG. I researched and found that "MIME confusion" used to be a problem but was fixed a while ago by browsers like Firefox. My question is: Are MIME confusion attacks still a thing? And if so, does that make "getting the mime from file-extension" insecure?

0

There are 0 best solutions below