moloch--/CSP-Bypass
A Burp Plugin for Detecting Weaknesses in Content Security Policies
CSP Bypass
This is a Burp plugin that is designed to passively scan for CSP headers that contain known bypasses as well as other potential weaknesses.

Installation
Jython Setup
- Download the latest standalone Jython 2.7.x .jar file
- In Burp select
Extenderand then theOptionstab, under the Python Environment heading clickSelect File ...and browse to the Jython .jar file
CSP Bypass Plugin Setup
- Execute the
build-plugin.shscript, you should see acsp-bypass-plugin.pyfile appear - In Burp select
Extenderand then theExtensionstab - Click
Addin the window that appears, selectPythonfrom theExtension Typedropdown menu - Click
Select File ...next toExtension Fileand select the generatedcsp-bypass-plugin.pyfile - Click
Nextand you're done!
Report Bypasses in Common Domains
To add bypasses simply edit csp_known_bypasses.py with a domain, and an example payload or description of the bypass. Be sure to use the full domain, the plugin will match wildcards (e.g. if a policy allows *.googleapis.com it will match against ajax.googleapis.com). Submit a pull request to get your bypass in the main repository!
Similar Projects
Discover other similar projects and AI models.
Collection of scripts, thoughts about CSP (Content Security Policy)
A PHP library aiming to make the use of browser security features more accessible.
Burp and ZAP plugin to analyse Content-Security-Policy headers or generate template CSP configuration from crawling a Website
Self-hosted collector for browser security reports: CSP, NEL, COOP, COEP and other Reporting API reports.
A browser extension to disable http header Content-Security-Policy and html meta Content-Security-Policy
Module for Nuxt.js to configure security headers and more
A collection of various awesome lists for hackers, pentesters and security researchers