-
Type:
Change Request
-
Status:
Closed
-
Priority:
Medium
-
Resolution:
Done
-
-
-
Module:
BenAdmin
- Security
-
-
Item State:
Production Complete
- Closed
-
Issue Importance:
Must Have
Vulnerability Description:
The HTTP Strict Transport Security (HSTS) policy header defines the timeframe in which a browser must connect to the webserver over HTTPS. Without this header being sent in all HTTPS responses, the webserver may be vulnerable to several attacks.
Impact
An attacker may be able to setup a fake web server and cause the application to make requests to an imitation server over HTTP.
Verification and Attack Information
Praetorian identified the lack of "Strict-Transport-Security" headers during an application walkthrough.
Recommendation
Add the HTTP Strict-Transport-Security header to all HTTPS responses. The syntax is as follows: Strict-Transport-Security: max-age=<seconds>[; includeSubDomains]
The parameter max-age gives the time frame for requirement of HTTPS in seconds and should be chosen quite high, e.g. several months. The flag includeSubDomains defines that the policy applies also for sub domains of the sender of the response.
References
https://www.owasp.org/index.php/HTTP_Strict_Transport_Security
{"report":{"apdex":1,"isInitial":true,"journeyId":"f122d84b-96b7-48b2-ac58-80018c635d0a","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":943.5,"redirectCount":0,"resourceLoadedEnd":951.3000000715256,"resourceLoadedStart":215.20000004768372,"resourceTiming":[{"duration":304.7999999523163,"initiatorType":"link","name":"https://jira.workterra.net/s/3003653444a1e1a85555cab7dcfb3a21-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/css/_super/batch.css","startTime":215.20000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":520,"responseStart":0,"secureConnectionStart":0},{"duration":304.5,"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":215.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":520,"responseStart":0,"secureConnectionStart":0},{"duration":304.5,"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":215.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":520,"responseStart":0,"secureConnectionStart":0},{"duration":304.60000002384186,"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":215.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":520.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":304.5,"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":215.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":215.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":520.2000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":313.90000009536743,"initiatorType":"script","name":"https://jira.workterra.net/s/f2623af22c15df767ec6ff268ae0b8bd-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/js/_super/batch.js?locale=en-US","startTime":215.89999997615814,"connectEnd":215.89999997615814,"connectStart":215.89999997615814,"domainLookupEnd":215.89999997615814,"domainLookupStart":215.89999997615814,"fetchStart":215.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":215.89999997615814,"responseEnd":529.8000000715256,"responseStart":529.8000000715256,"secureConnectionStart":215.89999997615814},{"duration":372.60000002384186,"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":215.89999997615814,"connectEnd":215.89999997615814,"connectStart":215.89999997615814,"domainLookupEnd":215.89999997615814,"domainLookupStart":215.89999997615814,"fetchStart":215.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":215.89999997615814,"responseEnd":588.5,"responseStart":588.3999999761581,"secureConnectionStart":215.89999997615814},{"duration":375.2000000476837,"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":216,"connectEnd":216,"connectStart":216,"domainLookupEnd":216,"domainLookupStart":216,"fetchStart":216,"redirectEnd":0,"redirectStart":0,"requestStart":216,"responseEnd":591.2000000476837,"responseStart":591.2000000476837,"secureConnectionStart":216},{"duration":375.60000002384186,"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":216.10000002384186,"connectEnd":216.10000002384186,"connectStart":216.10000002384186,"domainLookupEnd":216.10000002384186,"domainLookupStart":216.10000002384186,"fetchStart":216.10000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":216.10000002384186,"responseEnd":591.7000000476837,"responseStart":591.7000000476837,"secureConnectionStart":216.10000002384186},{"duration":375.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":216.30000007152557,"connectEnd":216.30000007152557,"connectStart":216.30000007152557,"domainLookupEnd":216.30000007152557,"domainLookupStart":216.30000007152557,"fetchStart":216.30000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":216.30000007152557,"responseEnd":592.2000000476837,"responseStart":592.1000000238419,"secureConnectionStart":216.30000007152557},{"duration":376.10000002384186,"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":216.39999997615814,"connectEnd":216.39999997615814,"connectStart":216.39999997615814,"domainLookupEnd":216.39999997615814,"domainLookupStart":216.39999997615814,"fetchStart":216.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":216.39999997615814,"responseEnd":592.5,"responseStart":592.5,"secureConnectionStart":216.39999997615814},{"duration":376.7000000476837,"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":216.60000002384186,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":216.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":593.3000000715256,"responseStart":0,"secureConnectionStart":0},{"duration":376.2999999523163,"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":216.60000002384186,"connectEnd":216.60000002384186,"connectStart":216.60000002384186,"domainLookupEnd":216.60000002384186,"domainLookupStart":216.60000002384186,"fetchStart":216.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":216.60000002384186,"responseEnd":592.8999999761581,"responseStart":592.8999999761581,"secureConnectionStart":216.60000002384186},{"duration":376.60000002384186,"initiatorType":"script","name":"https://jira.workterra.net/rest/api/1.0/shortcuts/805012/d86515d5f85e345261e03597bd3941f3/shortcuts.js?context=issuenavigation&context=issueaction","startTime":216.70000004768372,"connectEnd":216.70000004768372,"connectStart":216.70000004768372,"domainLookupEnd":216.70000004768372,"domainLookupStart":216.70000004768372,"fetchStart":216.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":216.70000004768372,"responseEnd":593.3000000715256,"responseStart":593.3000000715256,"secureConnectionStart":216.70000004768372},{"duration":376.89999997615814,"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":216.80000007152557,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":216.80000007152557,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":593.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":377.10000002384186,"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":216.89999997615814,"connectEnd":216.89999997615814,"connectStart":216.89999997615814,"domainLookupEnd":216.89999997615814,"domainLookupStart":216.89999997615814,"fetchStart":216.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":216.89999997615814,"responseEnd":594,"responseStart":594,"secureConnectionStart":216.89999997615814},{"duration":484.89999997615814,"initiatorType":"script","name":"https://jira.workterra.net/s/d41d8cd98f00b204e9800998ecf8427e-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":217.60000002384186,"connectEnd":217.60000002384186,"connectStart":217.60000002384186,"domainLookupEnd":217.60000002384186,"domainLookupStart":217.60000002384186,"fetchStart":217.60000002384186,"redirectEnd":0,"redirectStart":0,"requestStart":217.60000002384186,"responseEnd":702.5,"responseStart":702.5,"secureConnectionStart":217.60000002384186}],"threshold":1000,"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":3,"responseStart":208,"responseEnd":210,"domLoading":211,"domInteractive":1033,"domContentLoadedEventStart":1033,"domContentLoadedEventEnd":1115,"domComplete":1460,"loadEventStart":1460,"loadEventEnd":1462,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"886246cb2d3434","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":108,"dbReadsTimeInMs":18,"dbConnsTimeInMs":23,"applicationHash":"156decd7d2b4272533aa6cefc8294af635e1da97","experiments":[]}}
Steps to Configure Server for HTTP Strict Transport Security Header
1. Open IIS Manager and Select Project (Site).
2. Open "HTTP Response Header" and Click on "Add" button from Actions pane.
3. Add following Name and Value:
Name: Strict-Transport-Security
Value : max-age=31536000; includeSubDomains
Note : This will edit Web.Config file of Web Projects