
Crlf Injection
When user input reaches HTTP response headers, redirects, or logs without proper sanitization, this playbook shows you how to exploit CRLF injection to split responses and inject new headers or body content. It covers the classic attacks like session fixation via Set-Cookie injection, XSS through double CRLF body splitting, and cache poisoning on CDNs. The encoding bypass section is solid, covering double encoding, Unicode tricks, and LF-only variants when filters block the standard %0D%0A. It also routes you to the ghost-bits-cast-attack skill for Java services where you can use Unicode characters that decode to CRLF bytes. Honestly, this is one of those underrated vulns that scanners miss but chains beautifully into higher impact exploits.
- skills.sh installs
- 3.8K
- GitHub stars
- 2.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yaklang/hack-skills --skill crlf-injection --agent claude-codeInstalls into .claude/skills of the current project.
Files
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.
Normal: Location: /page?url=USER_INPUT
Attack: Location: /page?url=%0D%0ASet-Cookie:admin=true
Result: Two headers — Location + injected Set-Cookie
Sponsors
Details
- Repository
- github.com/yaklang/hack-skills
- First seen
- May 16, 2026
More from yaklang/hack-skills
All 102- Insecure Source Code Management3.8K
- Mobile Ssl Pinning Bypass3.8K
- Http Host Header Attacks3.8K
- Web Cache Deception3.8K
- Subdomain Takeover3.8K
- Dependency Confusion3.8K
- Expression Language Injection3.8K
- Csv Formula Injection3.8K
- Active Directory Acl Abuse3.8K
- Linux Privilege Escalation3.8K
- Clickjacking3.8K
- Active Directory Kerberos Attacks3.8K
- Jndi Injection3.8K
- Http2 Specific Attacks3.8K
- Saml Sso Assertion Attacks3.8K
- Arbitrary Write To Rce3.8K
- Active Directory Certificate Services3.8K
- Hash Attack Techniques3.8K
- Prototype Pollution3.8K
- Dns Rebinding Attacks3.8K
- Network Protocol Attacks3.8K
- Ai Ml Security3.8K
- Memory Forensics Volatility3.8K
- Dangling Markup Injection3.8K