Details | |
---|---|
Alert ID | 10038-3 |
Alert Type | Passive |
Status | release |
Risk | Informational |
CWE | 693 |
WASC | 15 |
Technologies Targeted | All |
Tags |
CWE-693 OWASP_2017_A06 OWASP_2021_A05 |
More Info |
Scan Rule Help |
Summary
The response contained a Content-Security-Policy-Report-Only header, this may indicate a work-in-progress implementation, or an oversight in promoting pre-Prod to Prod, etc.
Content Security Policy (CSP) 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. These attacks are used for everything from data theft to site defacement or distribution of malware. CSP provides a set of standard HTTP headers that allow website owners to declare approved sources of content that browsers should be allowed to load on that page — covered types are JavaScript, CSS, HTML frames, fonts, images and embeddable objects such as Java applets, ActiveX, audio and video files.
Solution
Ensure that your web server, application server, load balancer, etc. is configured to set the Content-Security-Policy header.Other Info
References
- https://www.w3.org/TR/CSP2/
- https://w3c.github.io/webappsec-csp/
- https://caniuse.com/#feat=contentsecuritypolicy
- https://content-security-policy.com/