What problem does it solve?
When a cross-site scripting vulnerability is found but the browser blocks execution due to a Content Security Policy, testers need a systematic way to determine whether the policy is actually effective or can be bypassed through misconfigurations, JSONP endpoints, or directive weaknesses.
Core Features & Use Cases
- CSP Policy Analysis: Extract and evaluate CSP headers and meta tags, detect report-only mode, and identify weak directives such as unsafe-inline, unsafe-eval, and missing base-uri or object-src.
- Bypass Technique Library: Step-by-step workflows covering JSONP callback abuse on whitelisted domains, AngularJS sandbox escapes, nonce leakage via CSS selectors, base-uri hijacking, and policy injection.
- False-Positive Avoidance: Confirmation criteria requiring actual script execution in a browser before reporting a bypass, distinguishing enforced policies from report-only ones.
- Use Case: During a bug bounty engagement, XSS is blocked by a script-src whitelist. The workflow guides testing whitelisted CDN domains for JSONP endpoints and AngularJS gadgets to achieve confirmed execution.
Quick Start
Analyze the Content Security Policy header of the target application and test it for bypass techniques such as JSONP endpoints, unsafe directives, and missing base-uri restrictions.