RepositoryPython
moloch--

moloch--/CSP-Bypass

A Burp Plugin for Detecting Weaknesses in Content Security Policies

166stars
36forks
3issues
2views

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.

CSP Bypass

Installation

Jython Setup

  1. Download the latest standalone Jython 2.7.x .jar file
  2. In Burp select Extender and then the Options tab, under the Python Environment heading click Select File ... and browse to the Jython .jar file

CSP Bypass Plugin Setup

  1. Execute the build-plugin.sh script, you should see a csp-bypass-plugin.py file appear
  2. In Burp select Extender and then the Extensions tab
  3. Click Add in the window that appears, select Python from the Extension Type dropdown menu
  4. Click Select File ... next to Extension File and select the generated csp-bypass-plugin.py file
  5. Click Next and 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.

RepositoryRuby
github/secure_headers

Manages application of security headers with many safe defaults

3.2k
Nov 25, 2026
RepositoryPHP
nico3333fr/CSP-useful

Collection of scripts, thoughts about CSP (Content Security Policy)

499
Jul 10, 2026
RepositoryPHP
aidantwoods/SecureHeaders

A PHP library aiming to make the use of browser security features more accessible.

429
Nov 17, 2023
RepositoryJava
GoSecure/csp-auditor

Burp and ZAP plugin to analyse Content-Security-Policy headers or generate template CSP configuration from crawling a Website

142
Apr 29, 2020
RepositoryGo
jacobbednarz/go-csp-collector

Self-hosted collector for browser security reports: CSP, NEL, COOP, COEP and other Reporting API reports.

132
Nov 12, 2026
RepositoryTypeScript
lisonge/Disable-CSP

A browser extension to disable http header Content-Security-Policy and html meta Content-Security-Policy

102
Jan 9, 2026
RepositoryPHP
wobqqq/oc-fortify-csp-plugin

🛡️ Content-Security-Policy header builder for October CMS

85
Nov 9, 2026
RepositoryJavaScript
dansmaculotte/nuxt-security

Module for Nuxt.js to configure security headers and more

55
Dec 13, 2024
Repository
Hack-with-Github/Awesome-Hacking

A collection of various awesome lists for hackers, pentesters and security researchers

127.3k
Oct 27, 2026