csp-bypass-advanced

Analyze CSP policies to identify missing directives and bypass vectors.

1.6k|204|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/yaklang/hack-skills --skill csp-bypass-advanced
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csp-bypass-advanced
Source: https://github.com/yaklang/hack-skills/tree/main/skills/csp-bypass-advanced
Command: npx skills add https://github.com/yaklang/hack-skills --skill csp-bypass-advanced

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CSP policies are often misconfigured or brittle, leaving apps vulnerable to bypasses and data exfiltration. This skill helps security practitioners identify weaknesses and exfiltration paths that CSP may fail to block.

Core Features & Use Cases

  • Analyze CSP policies to detect missing directives such as base-uri, form-action, frame-ancestors.
  • Map and reason about bypass vectors across script-src, nonce, strict-dynamic, and framework integrations (Angular/Vue) to assess risk.
  • Provide actionable guidance to mitigate weaknesses and implement stronger CSP controls in real-world web apps.

Quick Start

Run an assessment of a target page's CSP to identify missing directives and test common bypass vectors.

Frequently Asked Questions about csp-bypass-advanced

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

FAQPage Schema
How do I test if a CSP policy is vulnerable to bypass attacks?

To test CSP bypass vulnerabilities, analyze the target page's policy to identify missing directives like base-uri or form-action, then map bypass vectors across script-src, nonce, and strict-dynamic to evaluate policy resilience.

What is a CSP bypass and how does data exfiltration work through it?

A CSP bypass exploits misconfigured or brittle Content Security Policy directives to execute unauthorized scripts. Data exfiltration occurs when bypass pathways allow malicious code to transmit sensitive data outside intended boundaries.

Can I bypass CSP strict-dynamic and nonce-based script-src restrictions?

Yes, you can bypass CSP strict-dynamic and nonce-based script-src restrictions by mapping framework integrations like Angular or Vue, which often provide execution pathways circumventing these specific directive controls.

Which CSP directives are commonly missing and leave web apps vulnerable?

Commonly missing CSP directives that leave web apps vulnerable include base-uri, form-action, and frame-ancestors. Analyzing missing directives helps identify bypass pathways and exfiltration risks in real-world web applications.

What is the best way to assess CSP resilience against framework-based bypasses?

The best way to assess CSP resilience against framework-based bypasses is to map and reason about bypass vectors across script-src, nonce, strict-dynamic, and framework integrations like Angular and Vue to uncover specific risk pathways.

Why does my CSP policy still allow data exfiltration despite script-src restrictions?

Your CSP policy may allow data exfiltration despite script-src restrictions due to missing directives like base-uri or form-action, or because of framework-specific bypass vectors circumventing nonce and strict-dynamic controls.