csp-bypass-advanced

Analyze Content Security Policy configurations and identify bypass vectors for directives.

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/utsavthakur/agenticskills --skill csp-bypass-advanced-utsavthakur
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csp-bypass-advanced
Source: https://github.com/utsavthakur/agenticskills/tree/main/csp-bypass-advanced
Command: npx skills add https://github.com/utsavthakur/agenticskills --skill csp-bypass-advanced-utsavthakur

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenges of XSS, data exfiltration, and policy weaknesses in Content Security Policy (CSP) implementations.

Core Features & Use Cases

  • CSP Bypass Techniques: Provides comprehensive bypass techniques for CSP directives, such as script-src, style-src, and img-src.
  • In-depth Analysis: Delivers a detailed analysis of bypass methods for 'nonce', 'strict-dynamic', and framework-specific vulnerabilities.
  • Data Exfiltration Strategies: Offers alternative data exfiltration channels despite CSP restrictions.
  • Use Case: When you need to diagnose CSP issues and find weaknesses for policy optimization or when dealing with legacy systems that rely on outdated CSP configurations.

Quick Start

Use the csp-bypass-advanced skill to identify and analyze CSP bypass vectors in your web applications.

Frequently Asked Questions about csp-bypass-advanced

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bypass Content Security Policy restrictions for XSS payloads?

Bypassing Content Security Policy restrictions involves analyzing script-src, style-src, and img-src directives to identify misconfigurations. This Skill evaluates policy settings to pinpoint exploitable vectors, enabling script execution or data exfiltration despite active CSP enforcement.

What techniques bypass CSP nonce and strict-dynamic directives?

Bypassing CSP nonce and strict-dynamic directives requires exploiting framework-specific vulnerabilities and injection points that respect whitelisted scripts. The Skill analyzes these advanced policy configurations to uncover weaknesses where dynamically generated scripts or specific frameworks inadvertently allow unauthorized execution.

How can I exfiltrate data when CSP blocks external connections?

Data exfiltration under CSP restrictions involves finding alternative channels like allowed image sources or style injections. The Skill assesses img-src and style-src policies to determine viable data smuggling paths, providing strategies to extract data even when script execution is heavily limited.

Does this Skill help diagnose weak CSP configurations in legacy systems?

Diagnosing weak CSP configurations in legacy systems is a primary use case. The Skill analyzes outdated policy settings to identify bypass vectors and optimize restrictions, helping secure older web applications that rely on deprecated or overly permissive Content Security Policy implementations.

What are common CSP bypass vectors for script-src and style-src?

Common CSP bypass vectors for script-src and style-src include exploiting overly permissive domains, unsafe-inline, or JSONP endpoints. The Skill identifies these specific weaknesses by analyzing your policy directives to reveal how attackers might circumvent intended content restrictions.

When should I analyze my Content Security Policy for bypass vulnerabilities?

Analyzing Content Security Policy for bypass vulnerabilities is necessary when deploying new web applications, updating frameworks, or auditing legacy systems. The Skill helps assess policy impact and identify weaknesses during security reviews or when optimizing configurations against XSS and data exfiltration threats.