Tooluck logoTooluck
SKILL.md

dangling-markup-injection

Agent skill fromyaklang/hack-skills

Dangling markup injection playbook. Use when HTML injection is possible but JavaScript execution is blocked (CSP, sanitizer strips event handlers, WAF blocks script tags) — exfiltrate CSRF tokens, session data, and page content by injecting unclosed HTML tags that capture subsequent page content.

How to install dangling-markup-injection

install dangling-markup-injection
# install the hack-skills pack with the skills CLI
npx skills add yaklang/hack-skills

# or add only this skill to Claude Code: copy the folder

skills/dangling-markup-injection/

# into

~/.claude/skills/dangling-markup-injection/ (all projects)

.claude/skills/dangling-markup-injection/ (one project)

skills/dangling-markup-injection/SKILL.md

MITFull file
1# SKILL: Dangling Markup Injection — Exfiltration Without JavaScript
2
3> **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.
4
5## 0. RELATED ROUTING
6
7- [xss-cross-site-scripting](../xss-cross-site-scripting/SKILL.md) when full XSS is possible (no need for dangling markup)
8- [csp-bypass-advanced](../csp-bypass-advanced/SKILL.md) when CSP blocks JS execution — dangling markup bypasses script restrictions
9- [csrf-cross-site-request-forgery](../csrf-cross-site-request-forgery/SKILL.md) when dangling markup steals CSRF tokens for subsequent CSRF attacks
10- [crlf-injection](../crlf-injection/SKILL.md) when CRLF enables HTML injection in HTTP response
11- [web-cache-deception](../web-cache-deception/SKILL.md) when dangling markup + cache poisoning amplifies the attack
12
13---
14
15## 1. WHEN TO USE DANGLING MARKUP
16
17You need dangling markup when ALL of these are true:
18
191. You have an HTML injection point (reflected or stored)
202. JavaScript execution is blocked:
21 - CSP blocks inline scripts and event handlers
22 - Sanitizer strips `<script>`, `onerror`, `onload`, etc.
23 - WAF blocks known XSS patterns
24…

Excerpt shown under the repository's MIT license.

More skills in hack-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates