Skip to content
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
@mitar

Description

@mitar

Web history is full of security issues when browsers did MIME sniffing to "fix" broken MIME types returning by servers.

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions