yaklang avatar

Csp Bypass Advanced

When you hit an XSS vector but CSP is blocking execution, this walks you through the actual bypass techniques that work. It covers the directive hierarchy (and the critical ones like base-uri that don't fall back to default-src), nonce reuse and leakage, abusing whitelisted CDNs like jsdelivr or googleapis for JSONP callbacks, strict-dynamic propagation via script gadgets, and framework-specific template injection when Angular or Vue are allowed. The base-uri omission is especially common in the wild and often overlooked. Also handles the meta tag versus header CSP differences and exfiltration channels when script execution stays blocked but you still need to get data out.

skills.sh installs
3.8K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill csp-bypass-advanced --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: CSP Bypass — Advanced Techniques

AI LOAD INSTRUCTION: Covers per-directive bypass techniques, nonce/hash abuse, trusted CDN exploitation, data exfiltration despite CSP, and framework-specific bypasses. Base models often suggest unsafe-inline bypass without checking if the CSP actually uses it, or miss the critical base-uri and object-src gaps.

0. RELATED ROUTING


1. CSP DIRECTIVE REFERENCE MATRIX

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Categories
Backend & APIs, Security
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102
1yaklang avatarweb-cache-deceptionyaklang/hack-skillsWeb cache deception and poisoning playbook. Use when CDN, reverse proxy, or application caching may serve sensitive authenticated content to other users due to 3.8Kskills.sh installs
2giuseppe-trisciuoglio avataraws-sdk-java-v2-coregiuseppe-trisciuoglio/developer-kitProvides AWS SDK for Java 2.x client configuration, credential resolution, HTTP client tuning, timeout, retry, and testing patterns. Use when creating or harden3.8Kskills.sh installs
3anthropics avatardesign-handoffanthropics/knowledge-work-pluginsGenerate developer handoff specs from a design. Use when a design is ready for engineering and needs a spec sheet covering layout, design tokens, component prop3.8Kskills.sh installs
4yaklang avataractive-directory-kerberos-attacksyaklang/hack-skillsKerberos attack playbook for Active Directory. Use when targeting AD authentication via AS-REP roasting, Kerberoasting, golden/silver/diamond tickets, delegatio3.8Kskills.sh installs
5dpearson2699 avatarswift-codabledpearson2699/swift-ios-skillsImplement Swift Codable models for JSON and property-list encoding and decoding with JSONDecoder, JSONEncoder, CodingKeys, and custom init(from:) or encode(to:)3.8Kskills.sh installs
6yaklang avatarwindows-av-evasionyaklang/hack-skillsAV/EDR evasion playbook for Windows. Use when bypassing AMSI, ETW, .NET assembly detection, shellcode execution, process injection, API hooking, and signature-b3.8Kskills.sh installs