-
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":0.5,"isInitial":true,"journeyId":"1b137951-2bbe-4c56-8e44-4c827d5230a6","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":1132.199999988079,"redirectCount":0,"resourceLoadedEnd":1474.199999988079,"resourceLoadedStart":341.69999998807907,"resourceTiming":[{"duration":369.5999999642372,"initiatorType":"link","name":"https://jira.workterra.net/s/3003653444a1e1a85555cab7dcfb3a21-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/css/_super/batch.css","startTime":341.69999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":341.69999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":711.2999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":369.5999999642372,"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":342,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":342,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":711.5999999642372,"responseStart":0,"secureConnectionStart":0},{"duration":370,"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":342.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":342.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":712.0999999642372,"responseStart":0,"secureConnectionStart":0},{"duration":370.5999999642372,"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":342.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":342.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":712.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":371.10000002384186,"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":342.2999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":342.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":713.3999999761581,"responseStart":0,"secureConnectionStart":0},{"duration":419.89999997615814,"initiatorType":"script","name":"https://jira.workterra.net/s/f2623af22c15df767ec6ff268ae0b8bd-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/js/_super/batch.js?locale=en-US","startTime":342.39999997615814,"connectEnd":342.39999997615814,"connectStart":342.39999997615814,"domainLookupEnd":342.39999997615814,"domainLookupStart":342.39999997615814,"fetchStart":342.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":342.39999997615814,"responseEnd":762.2999999523163,"responseStart":762.2999999523163,"secureConnectionStart":342.39999997615814},{"duration":450.89999997615814,"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":342.5,"connectEnd":342.5,"connectStart":342.5,"domainLookupEnd":342.5,"domainLookupStart":342.5,"fetchStart":342.5,"redirectEnd":0,"redirectStart":0,"requestStart":342.5,"responseEnd":793.3999999761581,"responseStart":793.3999999761581,"secureConnectionStart":342.5},{"duration":453.80000001192093,"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":342.5999999642372,"connectEnd":342.5999999642372,"connectStart":342.5999999642372,"domainLookupEnd":342.5999999642372,"domainLookupStart":342.5999999642372,"fetchStart":342.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":342.5999999642372,"responseEnd":796.3999999761581,"responseStart":796.3999999761581,"secureConnectionStart":342.5999999642372},{"duration":454.10000002384186,"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":342.7999999523163,"connectEnd":342.7999999523163,"connectStart":342.7999999523163,"domainLookupEnd":342.7999999523163,"domainLookupStart":342.7999999523163,"fetchStart":342.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":342.7999999523163,"responseEnd":796.8999999761581,"responseStart":796.8999999761581,"secureConnectionStart":342.7999999523163},{"duration":454.5,"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":342.89999997615814,"connectEnd":342.89999997615814,"connectStart":342.89999997615814,"domainLookupEnd":342.89999997615814,"domainLookupStart":342.89999997615814,"fetchStart":342.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":342.89999997615814,"responseEnd":797.3999999761581,"responseStart":797.3999999761581,"secureConnectionStart":342.89999997615814},{"duration":455,"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":343,"connectEnd":343,"connectStart":343,"domainLookupEnd":343,"domainLookupStart":343,"fetchStart":343,"redirectEnd":0,"redirectStart":0,"requestStart":343,"responseEnd":798,"responseStart":798,"secureConnectionStart":343},{"duration":455.30000001192093,"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":343.0999999642372,"connectEnd":343.0999999642372,"connectStart":343.0999999642372,"domainLookupEnd":343.0999999642372,"domainLookupStart":343.0999999642372,"fetchStart":343.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":343.0999999642372,"responseEnd":798.3999999761581,"responseStart":798.3999999761581,"secureConnectionStart":343.0999999642372},{"duration":455.80000001192093,"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":343.19999998807907,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":343.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":799,"responseStart":0,"secureConnectionStart":0},{"duration":455.7000000476837,"initiatorType":"script","name":"https://jira.workterra.net/rest/api/1.0/shortcuts/805012/d86515d5f85e345261e03597bd3941f3/shortcuts.js?context=issuenavigation&context=issueaction","startTime":343.2999999523163,"connectEnd":343.2999999523163,"connectStart":343.2999999523163,"domainLookupEnd":343.2999999523163,"domainLookupStart":343.2999999523163,"fetchStart":343.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":343.2999999523163,"responseEnd":799,"responseStart":799,"secureConnectionStart":343.2999999523163},{"duration":456.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":343.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":343.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":799.5999999642372,"responseStart":0,"secureConnectionStart":0},{"duration":456.2999999523163,"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":343.5,"connectEnd":343.5,"connectStart":343.5,"domainLookupEnd":343.5,"domainLookupStart":343.5,"fetchStart":343.5,"redirectEnd":0,"redirectStart":0,"requestStart":343.5,"responseEnd":799.7999999523163,"responseStart":799.6999999880791,"secureConnectionStart":343.5}],"threshold":1000,"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":255,"responseStart":330,"responseEnd":331,"domLoading":340,"domInteractive":1507,"domContentLoadedEventStart":1507,"domContentLoadedEventEnd":1552,"domComplete":1922,"loadEventStart":1922,"loadEventEnd":1925,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"bd580401c38247","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":47,"dbReadsTimeInMs":3,"dbConnsTimeInMs":4,"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