Tooluck logoTooluck
SKILL.md

hunt-html-injection

Agent skill fromelementalsouls/Claude-BugHunter

Hunt HTML Injection — user-supplied input is rendered as raw HTML in the response without sanitisation, allowing an attacker to inject arbitrary HTML tags (but not necessarily JavaScript). Lower severity than XSS but enables phishing, UI manipulation, and credential harvesting via injected forms. Use when testing text-display surfaces (search results, profile fields, comments, error messages, feedback forms). For markup that executes JavaScript, escalate to hunt-xss.

How to install hunt-html-injection

install hunt-html-injection
# install the Claude-BugHunter pack with the skills CLI
npx skills add elementalsouls/Claude-BugHunter

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

skills/hunt-html-injection/

# into

~/.claude/skills/hunt-html-injection/ (all projects)

.claude/skills/hunt-html-injection/ (one project)

skills/hunt-html-injection/SKILL.md

MITFull file
1## What is HTML Injection
2
3HTML Injection occurs when user input is inserted into a page's HTML without escaping, so injected tags are rendered by the browser as markup rather than displayed as literal text. Unlike XSS, the injected content does not require JavaScript execution — injecting `<b>`, `<h1>`, `<a>`, `<img>`, or `<form>` tags is sufficient.
4
5**To PROVE impact unambiguously, escalate to an active vector carrying a unique numeric canary** — e.g. `"><img src=x onerror=alert(91234)>` or `<svg onload=alert(91234)>`. A distinctive 4+ digit number (not `alert(1)`) distinguishes YOUR reflected injection from the example payloads practice pages embed in their own hint text. Proof = the raw, unescaped vector with your canary appears in the response.
6
7**Impact:**
8- Phishing via injected `<form>` or `<a href="attacker.com">` tags
9- UI defacement — `<h1>HACKED</h1>` renders visually on the page
10- Credential harvesting via injected login forms
11- Redirect via `<meta http-equiv="refresh">`
12- Stepping stone to XSS (may be blocked by WAF on `<script>` but not `<img onerror>`)
13…

Excerpt shown under the repository's MIT license.

More skills in Claude-BugHunter

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