-
Type:
Change Request
-
Status:
Closed
-
Priority:
Medium
-
Resolution:
Done
-
-
-
Module:
BenAdmin
- Security
-
-
Item State:
Production Complete
- Closed
-
Issue Importance:
Must Have
-
Vulnerability Description
The server does not include a Content-Security-Policy header in HTTP(S) responses.
Impact
Content Security Policy is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. To use CSP, the developer writes a set of rules to govern which servers an app can open connections to, limit the types of content it can download from those servers, and restrict the use of dangerous features like inline scripts and the eval function.
Verification and Attack Information
Praetorian identified this issue through a manual application walkthrough by reviewing HTTP headers. While doing so, Praetorian noted that Content-Security-Policy header was not included in server response headers.
Recommendation
Best practices for web applications suggest that servers should specify a Content Security Policy (CSP) to whitelist the actions that their users' browsers are allowed to take.
References
https://developer.mozilla.org/en-US/docs/Web/Security/CSP/Introducing_Content_Security_Policy
http://www.html5rocks.com/en/tutorials/security/content-security-policy/
{"report":{"apdex":1,"isInitial":true,"journeyId":"a1ba5b93-bc12-4736-9144-66e946a67627","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":631.6999999880791,"redirectCount":0,"resourceLoadedEnd":857.7999999523163,"resourceLoadedStart":145.0999999642372,"resourceTiming":[{"duration":106.40000003576279,"initiatorType":"link","name":"https://jira.workterra.net/s/3003653444a1e1a85555cab7dcfb3a21-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/css/_super/batch.css","startTime":145.0999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":145.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":251.5,"responseStart":0,"secureConnectionStart":0},{"duration":110.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":145.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":145.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":255.79999995231628,"responseStart":0,"secureConnectionStart":0},{"duration":110.80000001192093,"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":145.29999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":145.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":256.0999999642372,"responseStart":0,"secureConnectionStart":0},{"duration":110.69999998807907,"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":145.39999997615814,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":145.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":256.0999999642372,"responseStart":0,"secureConnectionStart":0},{"duration":110.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":145.5999999642372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":145.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":256.0999999642372,"responseStart":0,"secureConnectionStart":0},{"duration":118.60000002384186,"initiatorType":"script","name":"https://jira.workterra.net/s/f2623af22c15df767ec6ff268ae0b8bd-CDN/-w431t5/805012/9a9e1fae3639050b38ac467c3aa37e79/2e46d90b5cae895c9c38649c9d510130/_/download/contextbatch/js/_super/batch.js?locale=en-US","startTime":145.79999995231628,"connectEnd":145.79999995231628,"connectStart":145.79999995231628,"domainLookupEnd":145.79999995231628,"domainLookupStart":145.79999995231628,"fetchStart":145.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":145.79999995231628,"responseEnd":264.39999997615814,"responseStart":264.39999997615814,"secureConnectionStart":145.79999995231628},{"duration":226.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":145.89999997615814,"connectEnd":145.89999997615814,"connectStart":145.89999997615814,"domainLookupEnd":145.89999997615814,"domainLookupStart":145.89999997615814,"fetchStart":145.89999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":145.89999997615814,"responseEnd":372.5,"responseStart":372.5,"secureConnectionStart":145.89999997615814},{"duration":229.39999997615814,"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":146,"connectEnd":146,"connectStart":146,"domainLookupEnd":146,"domainLookupStart":146,"fetchStart":146,"redirectEnd":0,"redirectStart":0,"requestStart":146,"responseEnd":375.39999997615814,"responseStart":375.39999997615814,"secureConnectionStart":146},{"duration":230,"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":146.0999999642372,"connectEnd":146.0999999642372,"connectStart":146.0999999642372,"domainLookupEnd":146.0999999642372,"domainLookupStart":146.0999999642372,"fetchStart":146.0999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":146.0999999642372,"responseEnd":376.0999999642372,"responseStart":376.0999999642372,"secureConnectionStart":146.0999999642372},{"duration":230.69999998807907,"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":146.19999998807907,"connectEnd":146.19999998807907,"connectStart":146.19999998807907,"domainLookupEnd":146.19999998807907,"domainLookupStart":146.19999998807907,"fetchStart":146.19999998807907,"redirectEnd":0,"redirectStart":0,"requestStart":146.19999998807907,"responseEnd":376.89999997615814,"responseStart":376.89999997615814,"secureConnectionStart":146.19999998807907},{"duration":231,"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":146.29999995231628,"connectEnd":146.29999995231628,"connectStart":146.29999995231628,"domainLookupEnd":146.29999995231628,"domainLookupStart":146.29999995231628,"fetchStart":146.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":146.29999995231628,"responseEnd":377.2999999523163,"responseStart":377.2999999523163,"secureConnectionStart":146.29999995231628},{"duration":366,"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":146.39999997615814,"connectEnd":146.39999997615814,"connectStart":146.39999997615814,"domainLookupEnd":146.39999997615814,"domainLookupStart":146.39999997615814,"fetchStart":146.39999997615814,"redirectEnd":0,"redirectStart":0,"requestStart":146.39999997615814,"responseEnd":512.3999999761581,"responseStart":512.3999999761581,"secureConnectionStart":146.39999997615814},{"duration":366.5999999642372,"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":146.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":146.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":513.0999999642372,"responseStart":0,"secureConnectionStart":0},{"duration":366.5,"initiatorType":"script","name":"https://jira.workterra.net/rest/api/1.0/shortcuts/805012/ea6f30d2bfdc99578bb23f4a5bac3ecd/shortcuts.js?context=issuenavigation&context=issueaction","startTime":146.5999999642372,"connectEnd":146.5999999642372,"connectStart":146.5999999642372,"domainLookupEnd":146.5999999642372,"domainLookupStart":146.5999999642372,"fetchStart":146.5999999642372,"redirectEnd":0,"redirectStart":0,"requestStart":146.5999999642372,"responseEnd":513.0999999642372,"responseStart":513.0999999642372,"secureConnectionStart":146.5999999642372},{"duration":367,"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":146.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":146.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":513.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":369.5,"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":146.79999995231628,"connectEnd":146.79999995231628,"connectStart":146.79999995231628,"domainLookupEnd":146.79999995231628,"domainLookupStart":146.79999995231628,"fetchStart":146.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":146.79999995231628,"responseEnd":516.2999999523163,"responseStart":516.2999999523163,"secureConnectionStart":146.79999995231628}],"threshold":1000,"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":63,"responseStart":130,"responseEnd":131,"domLoading":143,"domInteractive":884,"domContentLoadedEventStart":884,"domContentLoadedEventEnd":930,"domComplete":1250,"loadEventStart":1250,"loadEventEnd":1254,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"5695754ed7715b","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":31,"dbReadsTimeInMs":3,"dbConnsTimeInMs":4,"applicationHash":"156decd7d2b4272533aa6cefc8294af635e1da97","experiments":[]}}
Hi Rakesh Roy
Assigning this ticket to you for functional testing.