RepositoryPython
moloch--

moloch--/CSP-Bypass

A Burp Plugin for Detecting Weaknesses in Content Security Policies

166sao
36fork
3issue
2lượt xem

🔍 Plugin Burp tự động phát hiện CSP bypass và lỗ hổng chính sách bảo mật

Quét thụ công header CSP, tìm ngay các bypass đã biết — không cần brute-force thủ công.

CSP-Bypass là một plugin cho Burp Suite, viết bằng Python (chạy trên Jython), chuyên dò tìm các Content Security Policy yếu thế. Plugin hoạt động ở chế độ passive scan — tự động đọc các header CSP phản hồi từ target và so khớp với cơ sở dữ liệu các bypass đã biết, bao gồm cả wildcard mismatch và các mẫu khai thác phổ biến.

✨ Điểm nổi bật

  • Quét thụ công (passive scan): Plugin tự động kiểm tra header CSP trong từng phản hồi mà không cần gửi thêm request, tránh gây nhiễu cho ứng dụng đang test.
  • Cơ sở dữ liệu bypass có thể mở rộng: File csp_known_bypasses.py cho phép cộng đồng thêm bypass mới theo domain, plugin hỗ trợ khớp wildcard (ví dụ *.googleapis.com sẽ khớp với ajax.googleapis.com).
  • Hỗ trợ wildcard matching: Khi policy cho phép các subdomain cụ thể, plugin nhận diện chính xác các domain con không nằm trong danh sách whitelist.
  • Cộng đồng đóng góp: Bất kỳ ai cũng có thể submit pull request để thêm bypass mới vào repo, giúp cơ sở dữ liệu liên tục được cập nhật.
  • Cài đặt đơn giản qua build script: Chạy build-plugin.sh để tạo file .py, sau đó import vào Burp Extender mà không cần cấu hình phức tạp.

💡 Vì sao đáng chú ý

Content Security Policy là một trong những header bảo mật quan trọng nhất để ngăn chặn XSS và data injection, nhưng rất nhiều site cấu hình CSP sai cách — cho phép unsafe-inline, wildcard quá rộng, hoặc thiếu các directive cần thiết. CSP-Bypass giải quyết đúng điểm đau này: thay vì phải đọc và phân tích thủ công từng policy dài dòng, security researcher chỉ cần bật plugin và để Burp tự flag các điểm yếu.

Điểm mạnh khác nằm ở thiết kế mở — file csp_known_bypasses.py dễ chỉnh sửa, cho phép thêm bypass tùy theo target cụ thể hoặc ngành nghề. Phù hợp cho pentesters, bug bounty hunters, và bất kỳ ai làm audit bảo mật web cần đánh giá nhanh mức độ an toàn của CSP trên nhiều domain.


#BurpSuite #CSP #ContentSecurityPolicy #Security #Python #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

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