CSP header not implemented

Description

During the scan, Cytrix managed to find that a CSP header is not implemented.
Incorrectly configured CSP (Content Security Policy) could expose an application to client-side threats including Cross-Site Scripting (XSS), Cross Frame Scripting, and Cross-Site Request Forgery and so on.

Configuring Content Security Policy (CSP header) involves the CSP HTTP header to a certain Web page. It also involves giving values ​​to control what resources the user agent is allowed to load for that page.

Severity/Score

CVSS Version 3.x – 4.3 Medium

Recommendation

Make sure all headers are being set up correctly and accordingly, in order to prevent this vulnerability.

Define your CSP by using a list of policies and values that states which resources your site will allow or restrict. Test your CSP to make sure it works properly. Then, implement the CSP you’ve created.

References

https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP

https://cwe.mitre.org/data/definitions/16.html

< Return to all Vulnerabilities

Browser Exploitation

We know that it’s possible to exploit weaknesses (or vulnerabilities) that exist in anything, from a certain code to the entire application, let’s talk about

Read More »

What is a CWE ?

Similar to the article written on CVEs, in this article we will answer the questions :What is CWE ? and, what is the difference between

Read More »