Firefox X-Content-Type-Options: nosniff did not take effect
Categories
(Core :: DOM: Security, defect)
Tracking
()
People
(Reporter: dddliv3, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Steps to reproduce:
Open http://3mnk13j8.3cm.me/nosniff in Firefox 69.0 release(https://www.mozilla.org/en-US/firefox/69.0/releasenotes/)
The javascript code "alert(1)" is executed
Actual results:
The HTTP Response Headers have "Content-Type: aaa" and "X-Content-Type-Options: nosniff"
But the javascript code in the script tag is still executed.
Expected results:
Firefox should not sniff page content, the javascript code will not be executed, you can refer to Chrome / Safari's behavior
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Hey! 👋
The Bug has already been fixed and the patch landed in Firefox 70.
Just tested this on Beta - Prompts a download and does execute the Script :)
Comment 2•6 years ago
|
||
Right! Feels like a straightforward dupe then...
Updated•2 years ago
|
Description
•