This repository was archived by the owner on Feb 8, 2023. It is now read-only.
This repository was archived by the owner on Feb 8, 2023. It is now read-only.
MIME sniffing could be potentially dangerous on the gateway #222
Open
Description
Web history is full of security issues when browsers did MIME sniffing to "fix" broken MIME types returning by servers.
- http://www.adambarth.com/papers/2009/barth-caballero-song.pdf
- http://www.h-online.com/security/features/Risky-MIME-sniffing-in-Internet-Explorer-746229.html
Now if seems that IPFS is doing the same. I think this is very problematic if we want to host whole web applications on top of IPFS. I think there should be a way to at least set a fixed MIME type, or even add headers like X-Content-Type-Options: nosniff
.
One other option could be that MIME type would be resolved at the adding the file to the IPFS. Not at the gateway sending time. So user could check and verify what is the MIME type detected, and then override that if necessary.
See also:
Metadata
Metadata
Assignees
Labels
No labels