X-Content-Type-Options Header Missing
- Risk:
Low
- Type:
- Passive
- CWE:
- CWE-693
- Summary
The Anti-MIME-Sniffing header X-Content-Type-Options was not set to ’nosniff’. This allows older versions of Internet Explorer and Chrome to perform MIME-sniffing on the response body, potentially causing the response body to be interpreted and displayed as a content type other than the declared content type. Current (early 2014) and legacy versions of Firefox will use the declared content type (if one is set), rather than performing MIME-sniffing.
- Solution
Ensure that the application/web server sets the Content-Type header appropriately, and that it sets the X-Content-Type-Options header to 'nosniff' for all web pages. If possible, ensure that the end user uses a standards-compliant and modern web browser that does not perform MIME-sniffing at all, or that can be directed by the web application/web server to not perform MIME-sniffing.
- Other info
- This issue still applies to error type pages (401, 403, 500, etc.) as those pages are often still affected by injection issues, in which case there is still concern for browsers sniffing pages away from their actual content type. At "High" threshold this scan rule will not alert on client or server error responses.
- References
New SAP NetWeaver Bug Lets Attackers Take Over Servers Without Login
Malicious crypto-stealing VSCode extensions resurface on OpenVSX
Final Windows 10 Patch Tuesday update rolls out as support ends
New Android Pixnapping attack steals MFA codes pixel-by-pixel
Microsoft: Exchange 2016 and 2019 have reached end of support
Microsoft October 2025 Patch Tuesday fixes 6 zero-days, 172 flaws
US seizes $15 billion in crypto from 'pig butchering' kingpin
Chinese Hackers Exploit ArcGIS Server as Backdoor for Over a Year
Oracles silently fixes zero-day exploit leaked by ShinyHunters
CVE-2021-43226 Microsoft Windows Privilege Escalation Vulnerability
CVE-2010-3765 Mozilla Multiple Products Remote Code Execution Vulnerability
CVE-2011-3402 Microsoft Windows Remote Code Execution Vulnerability
CVE-2013-3918 Microsoft Windows Out-of-Bounds Write Vulnerability
CVE-2010-3962 Microsoft Internet Explorer Uninitialized Memory Corruption Vulnerability
CVE-2016-7836 SKYSEA Client View Improper Authentication Vulnerability
CVE-2021-22555 Linux Kernel Heap Out-of-Bounds Write Vulnerability
CVE-2023-50224 TP-Link TL-WR841N Authentication Bypass by Spoofing Vulnerability
CVE-2024-53104 Linux Kernel Out-of-Bounds Write Vulnerability
Free online web security scanner