yaklang/hack-skills/crlf-injection
Claude Code and agent skill by yaklang/hack-skills
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install yaklang/hack-skills/crlf-injectionSKILL.md
The same SKILL.md was published earlier as yaklang/hack-skills/crlf-injection.
SKILL: CRLF Injection — Expert Attack Playbook
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.
0. RELATED ROUTING
- ghost-bits-cast-attack when the target is a Java service and
%0D%0A/\r\nencodings 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)
1. CORE CONCEPT
CRLF = \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.
2. DETECTION
Basic Probe
Double CRLF — Body Injection
Two consecutive CRLF sequences end headers and start body:
3. EXPLOITATION SCENARIOS
Session Fixation via Set-Cookie
XSS via Response Body
Cache Poisoning
If the response is cached by a CDN or proxy, injected headers/body are served to all users:
Log Injection
CRLF in log-visible fields (User-Agent, Referer) can forge log entries:
4. FILTER BYPASS
| Filter | Bypass | |
|---|---|---|
Blocks %0D%0A | Try %0D alone, %0A alone, or %E5%98%8A%E5%98%8D (Unicode) | |
| URL decodes once | Double-encode: %250D%250A | |
Strips \r\n literally | Use URL-encoded form | |
| Blocks in value only | Inject in parameter name |
5. REAL-WORLD EXPLOITATION CHAINS
CRLF + Session Fixation
CRLF → XSS via Double CRLF Body Injection
CRLF in 302 Location → Redirect Hijack
6. COMMON VULNERABLE PATTERNS
7. TESTING CHECKLIST
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/crlf-injection/SKILL.md
Popularity
- Installs
- 3
- Unique users
- 2
- Repository stars
- 348
- Repository forks
- 62
- 7-day trend score
- 33
Installs come from the vskill CLI. Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yaklang/hack-skills/crlf-injection)