Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIME sniffing #51

Closed
mnot opened this issue Mar 26, 2018 · 3 comments
Closed

MIME sniffing #51

mnot opened this issue Mar 26, 2018 · 3 comments

Comments

@mnot
Copy link
Member

mnot commented Mar 26, 2018

7231 says:

In practice, resource owners do not always properly configure their origin server to provide the correct Content-Type for a given representation, with the result that some clients will examine a payload's content and override the specified type. Clients that do so risk drawing incorrect conclusions, which might expose additional security risks (e.g., "privilege escalation"). Furthermore, it is impossible to determine the sender's intent by examining the data format: many data formats match multiple media types that differ only in processing semantics. Implementers are encouraged to provide a means of disabling such "content sniffing" when it is used.

It seems like this should at least mention:

@royfielding
Copy link
Member

As mentioned in the PR, it makes sense here to reference MIME Sniffing as that is responsive to the entire paragraph. However, X-CTO is neither a standard nor recommended in practice, and falls into a "no I really mean it" example rather than a means for the user to disable sniffing. I have updated the PR accordingly.

@annevk
Copy link
Contributor

annevk commented Mar 25, 2019

X-Content-Type-Options is definitely recommended to some extent, it's the only way to avoid a certain set of issues.

@mcmanus
Copy link

mcmanus commented Mar 25, 2019

ietf104: no interest in mentioning xcto explicitly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants