Sniffing prevention via "X-Content-Type-Options: nosniff" should probably also disable stream converters
Categories
(Core :: DOM: Security, defect, P1)
Tracking
()
People
(Reporter: bzbarsky, Assigned: sstreich)
References
Details
(Whiteboard: [domsecurity-active])
Attachments
(1 obsolete file)
The patch in bug 1428473 doesn't change whether the code at https://searchfox.org/mozilla-central/rev/e5327b05c822cdac24e233afa37d72c0552dbbaf/uriloader/base/nsURILoader.cpp#501-519 runs. Should it have? It seems like we wouldn't want to do that if nosniff is specified...
| Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
| Assignee | ||
Comment 2•6 years ago
|
||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Is there anything left to do here or can we close this one?
Comment 4•5 years ago
|
||
Using ZAP and Firefox 77.0.1 we still get "X-Content-Type-Options Header Missing" (The Anti-MIME-Sniffing header X-Content-Type-Options was not set to 'nosniff') for URLs:
Comment 5•5 years ago
|
||
(In reply to Chris Potter from comment #4)
Using ZAP and Firefox 77.0.1 we still get "X-Content-Type-Options Header Missing" (The Anti-MIME-Sniffing header X-Content-Type-Options was not set to 'nosniff') for URLs:
and also
https://shavar.services.mozilla.com/downloads?client=navclient-auto-ffox&appver=77.0&pver=2.2
| Assignee | ||
Comment 6•5 years ago
|
||
Hey Chris, those links don't work for me at least.
But in case the problem is that "tracking-protection.cdn.mozilla.net" and shavar services are not sending nosniff, this is sadly the wrong bug.
Could you maybe file a bug for that directly on the shavar issue page? - In case it's not, just comment and i will reopen the bug :)
Christoph, I'll close the bug, we currently can't disable the streaming converters, as we rely on nsUnknownDecoder for the case we don't get a mime type at all.
Comment 7•5 years ago
|
||
Hey Sebastien,
I thought that external call (*.mozilla.net, *.mozilla.org) responsibilities belongs to Mozilla foundation. I think it could hurt Firefox reputation to have medium security alerts.
Having no time to report this bug elsewhere for now you can close this one if it is convenient for you
Best,
Description
•