crlf-injection
Test for CRLF injection enabling HTTP response splitting, header injection, and log forging
by VigilOSS★ 35 GitHub stars
Install crlf-injection in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
CRLF Injection Testing
When to Activate
- Input is reflected into a response header (
Location,Set-Cookie, custom headers), a redirect target, or a log line; or a proxy chain may re-encode characters.
--technique CRLF; send via vigil assess kali exec --technique CRLF --intent "<purpose>" --probe-kind payload --phase consume-test --timeout 30 -- curl -sv … and read the raw response
headers (the injected header must appear as its own header line).
Most modern stacks (Node, Go, Java servlet containers, Python frameworks) reject CR/LF in header values, so hits cluster in legacy code, custom header writers, and proxies or CDNs that decode before forwarding.
What to try
- Targets: header injection (
%0d%0aX-Injected:1),Set-Cookieinjection (session fixation),Locationinjection, full response splitting (double CRLF, then a body → XSS), and log forging in logged parameters. - Encodings:
%0d%0a, lone%0aor%0d, mixed case, double-encoded%250d%250a, a%00prefix, tab/space continuation after the CRLF, and the UTF-8 sequences some proxies normalise to CR/LF (%E5%98%8A%E5%98%8D,%C4%8D%C4%8A). - HTTP/2 downgrade: CR/LF in a header value or pseudo-header that a front-end passes to an
HTTP/1.1 back-end. curl cannot set pseudo-headers with
-H; use a raw HTTP/2 client script run throughvigil assess kali exec(agent/skills/request-smuggling/SKILL.mdcovers the downgrade family). - Log forging proves itself with an inert marker line. Forged alert-looking lines
(
[CRITICAL] …) can page a real SOC, so they need the side-effect preflight (agent/shared-constraints.md§2d).
What to Record
Injection point, the exact payload and encoding that worked, the raw response showing the injected
header or split body, and the outcome it enables (agent/rules/hunting.md §2): a fixed session
cookie, script execution in the split response, a redirect to an attacker origin. Header injection
with no outcome is a chain component (agent/references/finding-fp-and-severity-gate.md). Format:
agent/references/runtime-guides/web-finding-recording.md.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the crlf-injection skill do?
Test for CRLF injection enabling HTTP response splitting, header injection, and log forging
How do I install the crlf-injection skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the crlf-injection skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…