csp-bypass-advanced

Analyze CSP directives and browser fallbacks to identify XSS and data exfiltration bypass paths.

241|28|Updated May 20, 2026
One-click install
npx skills add https://github.com/ok-helloworld/vibe-pentest --skill csp-bypass-advanced-ok-helloworld
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csp-bypass-advanced
Source: https://github.com/ok-helloworld/vibe-pentest/tree/main/references/pentest_skills/csp-bypass-advanced
Command: npx skills add https://github.com/ok-helloworld/vibe-pentest --skill csp-bypass-advanced-ok-helloworld

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you identify advanced Content Security Policy (CSP) bypass paths when script execution or data exfiltration is blocked, so you can still assess the real impact of XSS-like injection, policy misconfigurations, and browser trust gaps.

Core Features & Use Cases

  • Directive-aware bypass matrix: Pinpoints which CSP directives do (or do not) fall back to default-src, focusing on high-risk gaps like missing base-uri, form-action, and frame-ancestors.
  • Script-source escalation techniques: Covers bypasses for script-src patterns such as 'self', CDN allowlists, 'unsafe-eval', nonces, and 'strict-dynamic'.
  • Framework-specific bypass guidance: Includes practical Angular/Vue-oriented routes for turning template or runtime behaviors into execution when policy constraints are present.
  • Exfiltration despite CSP: Provides alternative exfiltration channels (e.g., DNS/WebRTC/CSS/form-based vectors) that CSP cannot fully block.

Quick Start

Ask an authorized pentest workflow to fetch the target page’s CSP (headers and meta), then apply this skill’s directive matrix to derive the most likely bypass and exfiltration strategies for the observed policy.

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 when script-src blocks XSS execution?

Bypassing Content Security Policy when script-src blocks XSS involves exploiting missing high-impact directives like base-uri or form-action, or leveraging fallback gaps where directives do not inherit from default-src, enabling alternative injection or policy misconfiguration abuse.

What is the best way to exfiltrate data when CSP restricts connect-src and img-src?

Exfiltrating data when CSP restricts connect-src and img-src requires using alternative channels like DNS, WebRTC, CSS, or form-based vectors that Content Security Policy cannot fully block, bypassing traditional network-level source restrictions.

Can I bypass strict-dynamic and nonce-based CSP trust models?

Bypassing strict-dynamic and nonce-based Content Security Policy trust models involves leveraging framework-specific runtime behaviors in Angular or Vue, or exploiting script-source escalation techniques to achieve execution when policy constraints are present.

How does a CSP directive fallback to default-src affect web application security testing?

CSP directive fallback to default-src impacts web application security testing by creating high-risk gaps, because directives like base-uri and form-action do not inherit default-src, leaving exploitable paths for injection and data theft.

What are the limitations of CSP bypass techniques for framework-specific gadgets?

Limitations of CSP bypass techniques for framework-specific gadgets include strict reliance on Angular or Vue template and runtime behaviors, meaning bypass paths may fail if the target application changes its framework version or removes vulnerable runtime configurations.