performing-content-security-policy-bypass

Featured

Analyze and bypass Content Security Policy implementations to achieve cross-site scripting by exploiting misconfigurations, JSONP endpoints, unsafe directives, and policy injection techniques.

AI & Automation 12,642 stars 1468 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Performing Content Security Policy Bypass ## When to Use - When XSS is found but execution is blocked by Content Security Policy - During web application security assessments to evaluate CSP effectiveness - When testing the robustness of CSP against known bypass techniques - During bug bounty hunting where CSP prevents direct XSS exploitation - When auditing CSP header configuration for security weaknesses ## Prerequisites - Burp Suite for intercepting responses and analyzing CSP headers - CSP Evaluator (Google) for automated policy analysis - Understanding of CSP directives (script-src, default-src, style-src, etc.) - Knowledge of CSP bypass techniques (JSONP, base-uri, object-src) - Browser developer tools for CSP violation monitoring - Collection of whitelisted domain JSONP endpoints ## Workflow ### Step 1 — Analyze the CSP Policy ```bash # Extract CSP from response headers curl -sI http://target.com | grep -i "content-security-policy" # Check for CSP in meta tags curl -s http://target.com | grep -i "content-security-policy" # Analyze CSP with Google CSP Evaluator # Visit: https://csp-evaluator.withgoogle.com/ # Paste the CSP policy for automated analysis # Check for report-only mode (not enforced) curl -sI http://target.com | grep -i "content-security-policy-report-only" # If only report-only exists, CSP is NOT enforced - XSS works directly # Parse directive values # Example CSP: # script-src 'self' 'unsafe-inline' https://cdn.example.com; # default-src 'self'; ...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
3 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

performing-web-application-firewall-bypass

Bypass Web Application Firewall protections using encoding techniques, HTTP method manipulation, parameter pollution, and payload obfuscation to deliver SQL injection, XSS, and other attack payloads past WAF detection rules.

12,642 Updated today
mukul975
AI & Automation Listed

security-arsenal

Security payloads, bypass tables, wordlists, gf pattern names, always-rejected bug list, and conditionally-valid-with-chain table. Use when you need specific payloads for XSS/SSRF/SQLi/XXE/IDOR/path-traversal, bypass techniques, or to check if a finding is submittable. Also use when asked about what NOT to submit.

0 Updated today
Mikacr1138
AI & Automation Listed

security-arsenal

Security payloads, bypass tables, wordlists, gf pattern names, always-rejected bug list, and conditionally-valid-with-chain table. Use when you need specific payloads for XSS/SSRF/SQLi/XXE/NoSQLi/command injection/SSTI/IDOR/path-traversal/HTTP smuggling/WebSocket/MFA bypass, bypass techniques, or to check if a finding is submittable. Also use when asked about what NOT to submit.

1,380 Updated 4 days ago
elementalsouls
Testing & QA Featured

testing-for-xss-vulnerabilities-with-burpsuite

Identifying and validating cross-site scripting vulnerabilities using Burp Suite's scanner, intruder, and repeater tools during authorized security assessments.

12,642 Updated today
mukul975
Testing & QA Featured

testing-for-xss-vulnerabilities

Tests web applications for Cross-Site Scripting (XSS) vulnerabilities by injecting JavaScript payloads into reflected, stored, and DOM-based contexts to demonstrate client-side code execution, session hijacking, and user impersonation. The tester identifies all injection points and output contexts, crafts context-appropriate payloads, and bypasses sanitization and CSP protections. Activates for requests involving XSS testing, cross-site scripting assessment, client-side injection testing, or JavaScript injection vulnerability testing.

12,642 Updated today
mukul975