Tooluck logoTooluck
SKILL.md

crlf-injection

Agent skill fromyaklang/hack-skills

CRLF injection playbook. Use when user input reaches HTTP response headers, Location redirects, Set-Cookie values, or log files where carriage-return/line-feed characters can split or inject content.

How to install crlf-injection

install crlf-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/crlf-injection/

# into

~/.claude/skills/crlf-injection/ (all projects)

.claude/skills/crlf-injection/ (one project)

skills/crlf-injection/SKILL.md

MITFull file
1# SKILL: CRLF Injection — Expert Attack Playbook
2
3> **AI LOAD INSTRUCTION**: CRLF injection (HTTP response splitting) techniques. Covers header injection, response body injection via double CRLF, XSS escalation, cache poisoning, and encoding bypass. Often overlooked by scanners but chains into XSS, session fixation, and cache attacks.
4
5## 0. RELATED ROUTING
6
7- [ghost-bits-cast-attack](../ghost-bits-cast-attack/SKILL.md) when the target is a **Java service** and `%0D%0A` / `\r\n` encodings are WAF-blocked — substituting `瘍` (U+760D, low byte `\r`) and `瘊` (U+760A, low byte `\n`) injects a real CRLF through Angus Mail / Jakarta Mail SMTP, Apache HttpClient headers, JDK HttpServer responses, and ActiveJ HTTP (re-enables Jira CVE-2025-57733 and JDK CVE-2026-21933 classes)
8
9## 1. CORE CONCEPT
10
11CRLF = `\r\n` (Carriage Return + Line Feed, `%0D%0A`). HTTP headers are separated by CRLF. If user input is reflected in a response header without sanitization, injecting CRLF characters creates new headers or even a response body.
12
13```
14Normal: Location: /page?url=USER_INPUT
15Attack: Location: /page?url=%0D%0ASet-Cookie:admin=true
16Result: Two headers — Location + injected Set-Cookie
17```
18
19---
20
21## 2. DETECTION
22
23### Basic Probe
24
25```text
26%0D%0ANew-Header:injected
27
28# In URL parameter:
29https://target.com/redirect?url=%0D%0AX-Injected:true
30
31# Check response headers for "X-Injected: true"
32```
33
34### Double CRLF — Body Injection
35
36Two consecutive CRLF sequences end headers and start body:
37
38```text
39…

Excerpt shown under the repository's MIT license.

More skills in hack-skills

Keep exploring

Similar skill repositories

nexu-io /

open-design
107k

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create motion, prototypes, websites, apps, dashboards, presentations, images, and videos with your team and AI agents. Share work, exchange feedback, and iterate together in one workspace.

40 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates