-
Type:
Change Request
-
Status:
Closed
-
Priority:
Medium
-
Resolution:
Done
-
-
-
Module:
BenAdmin
- Security
-
-
Item State:
Production Complete
- Closed
-
Issue Importance:
Must Have
-
Vulnerability Description
Sending the new 'X-Content-Type-Options' response header with the value 'nosniff' will prevent certain browsers from MIME-sniffing a response away from the declared content-type. The missing header causes these browsers to try to determine the content-type and encoding of the response, even when these properties are defined correctly.
Impact
This can make the web application vulnerable to Cross-Site Scripting (XSS) attacks. E.g. the Internet Explorer and Safari treat responses with the content-type 'text/plain' as HTML, if they contain HTML tags.
Verification and Attack Information
Praetorian discovered this vulnerability through manual testing. Specifically, Praetorian found the "X-Content-Type-Options" header was missing from server responses of the affected system.
Recommendation
Set the following HTTP header especially in all responses which contain user input:
X-Content-Type-Options: nosniff
References
https://www.owasp.org/index.php/List_of_useful_HTTP_headers
http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx
{"report":{"apdex":1,"isInitial":true,"journeyId":"ece38ce7-a36a-4774-90b6-8813116198e7","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":672.0999999642372,"redirectCount":0,"resourceLoadedEnd":1259.5999999642372,"resourceLoadedStart":175.79999995231628,"resourceTiming":[{"duration":82.10000002384186,"initiatorType":"link","name":"https://jira.workterra.net/s/3003653444a1e1a85555cab7dcfb3a21-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/css/_super/batch.css","startTime":175.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":175.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":257.89999997615814,"responseStart":0,"secureConnectionStart":0},{"duration":82,"initiatorType":"link","name":"https://jira.workterra.net/s/dd6a0911920485696ac20493290df627-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/3abe50d469404b639745df44b51476b6/_/download/contextbatch/css/jira.browse.project,jira.view.issue,project.issue.navigator,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&richediton=true","startTime":176.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":176.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":258.0999999642372,"responseStart":0,"secureConnectionStart":0},{"duration":81.89999997615814,"initiatorType":"link","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/8.5.0/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.css","startTime":176.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":176.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":258.0999999642372,"responseStart":0,"secureConnectionStart":0},{"duration":81.90000003576279,"initiatorType":"link","name":"https://jira.workterra.net/s/bd548f27bbf8f278bd83b60dd3284ed8-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:global-static-adgs/jira.webresources:global-static-adgs.css","startTime":176.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":176.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":258.19999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":81.89999997615814,"initiatorType":"link","name":"https://jira.workterra.net/s/70725731a158a7140f19ddbd4201ba27-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:global-static/jira.webresources:global-static.css","startTime":176.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":176.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":258.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":117.5,"initiatorType":"script","name":"https://jira.workterra.net/s/f2623af22c15df767ec6ff268ae0b8bd-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/js/_super/batch.js?locale=en-US","startTime":176.39999997615814,"connectEnd":176.39999997615814,"connectStart":176.39999997615814,"domainLookupEnd":176.39999997615814,"domainLookupStart":176.39999997615814,"fetchStart":176.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":176.39999997615814,"responseEnd":293.89999997615814,"responseStart":293.89999997615814,"secureConnectionStart":176.39999997615814},{"duration":190.19999998807907,"initiatorType":"script","name":"https://jira.workterra.net/s/6ce676f2a5bcc9651cef6e7956f05def-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/3abe50d469404b639745df44b51476b6/_/download/contextbatch/js/jira.browse.project,jira.view.issue,project.issue.navigator,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":176.5999999642372,"connectEnd":176.5999999642372,"connectStart":176.5999999642372,"domainLookupEnd":176.5999999642372,"domainLookupStart":176.5999999642372,"fetchStart":176.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":176.5999999642372,"responseEnd":366.7999999523163,"responseStart":366.7999999523163,"secureConnectionStart":176.5999999642372},{"duration":193.19999998807907,"initiatorType":"script","name":"https://jira.workterra.net/s/ecf7ec549751ae117b778f0525d6d371-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/4.1.5/_/download/resources/com.atlassian.plugins.atlassian-chaperone:hotspot-tour/hotspot-tour.js?batch=false&locale=en-US","startTime":176.69999998807907,"connectEnd":176.69999998807907,"connectStart":176.69999998807907,"domainLookupEnd":176.69999998807907,"domainLookupStart":176.69999998807907,"fetchStart":176.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":176.69999998807907,"responseEnd":369.89999997615814,"responseStart":369.89999997615814,"secureConnectionStart":176.69999998807907},{"duration":193.39999997615814,"initiatorType":"script","name":"https://jira.workterra.net/s/6aa3fcf1fac5fd551eee0b69077524e6-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/aae1242f5fc81cc6a5bb8bc963ccda29/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en-US","startTime":176.89999997615814,"connectEnd":176.89999997615814,"connectStart":176.89999997615814,"domainLookupEnd":176.89999997615814,"domainLookupStart":176.89999997615814,"fetchStart":176.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":176.89999997615814,"responseEnd":370.2999999523163,"responseStart":370.2999999523163,"secureConnectionStart":176.89999997615814},{"duration":193.89999997615814,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":177,"connectEnd":177,"connectStart":177,"domainLookupEnd":177,"domainLookupStart":177,"fetchStart":177,"redirectEnd":0,"redirectStart":0,"requestStart":177,"responseEnd":370.89999997615814,"responseStart":370.7999999523163,"secureConnectionStart":177},{"duration":194.19999998807907,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":177.0999999642372,"connectEnd":177.0999999642372,"connectStart":177.0999999642372,"domainLookupEnd":177.0999999642372,"domainLookupStart":177.0999999642372,"fetchStart":177.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":177.0999999642372,"responseEnd":371.2999999523163,"responseStart":371.2999999523163,"secureConnectionStart":177.0999999642372},{"duration":194.5999999642372,"initiatorType":"script","name":"https://jira.workterra.net/s/ecf7ec549751ae117b778f0525d6d371-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/8.5.0/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.js?locale=en-US","startTime":177.19999998807907,"connectEnd":177.19999998807907,"connectStart":177.19999998807907,"domainLookupEnd":177.19999998807907,"domainLookupStart":177.19999998807907,"fetchStart":177.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":177.19999998807907,"responseEnd":371.7999999523163,"responseStart":371.7999999523163,"secureConnectionStart":177.19999998807907},{"duration":195,"initiatorType":"link","name":"https://jira.workterra.net/s/05c862146699bb029ceb0a489075e63b-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/bcd66e9a133a1b9f5fd14b56841e1c5b/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":177.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":372.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":195,"initiatorType":"script","name":"https://jira.workterra.net/rest/api/1.0/shortcuts/805012/81da1c7492d7ee698ae1cc31902498d9/shortcuts.js?context=issuenavigation&context=issueaction","startTime":177.39999997615814,"connectEnd":177.39999997615814,"connectStart":177.39999997615814,"domainLookupEnd":177.39999997615814,"domainLookupStart":177.39999997615814,"fetchStart":177.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":177.39999997615814,"responseEnd":372.39999997615814,"responseStart":372.2999999523163,"secureConnectionStart":177.39999997615814},{"duration":195.19999998807907,"initiatorType":"link","name":"https://jira.workterra.net/s/9095228fa10daa2d3e3d7d5760c95e91-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/72477c22780abda5f51fe696920d843f/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.css?jira.create.linked.issue=true&richediton=true","startTime":177.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":177.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":372.69999998807907,"responseStart":0,"secureConnectionStart":0},{"duration":195.19999998807907,"initiatorType":"script","name":"https://jira.workterra.net/s/c19a1b46e985d7fb85efaf27c8febfdd-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/72477c22780abda5f51fe696920d843f/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.js?jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":177.69999998807907,"connectEnd":177.69999998807907,"connectStart":177.69999998807907,"domainLookupEnd":177.69999998807907,"domainLookupStart":177.69999998807907,"fetchStart":177.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":177.69999998807907,"responseEnd":372.89999997615814,"responseStart":372.89999997615814,"secureConnectionStart":177.69999998807907}],"threshold":1000,"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":93,"responseStart":170,"responseEnd":171,"domLoading":173,"domInteractive":1291,"domContentLoadedEventStart":1291,"domContentLoadedEventEnd":1334,"domComplete":1699,"loadEventStart":1699,"loadEventEnd":1701,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"af42158367a6f1","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":31,"dbReadsTimeInMs":3,"dbConnsTimeInMs":5,"applicationHash":"156decd7d2b4272533aa6cefc8294af635e1da97","experiments":[]}}
HTTP Response Header
Name : X-Content-Type-Options
Value : nosniff
For Testing :
1. Open Login Page --> Inspect Element --> Network Tab --> Reload Page (Ctrl + F5)
2. Check Response Headers of all files --> X-Content-Type-Options attribute is Added.
Help URL:
https://www.veracode.com/blog/2014/03/guidelines-for-setting-security-headers
https://scotthelme.co.uk/hardening-your-http-response-headers/
http://webtonio.com/iis-image-not-loading/