
Crlf Injection
CRLF injection playbook covering header splitting, response body injection, and encoding bypasses in redirects and cookies.
- skills.sh installs
- 3.9K
- GitHub stars
- 2.7K
- last updated
- Aug 21, 2026
What it does
- Covers detection probes, double-CRLF body injection, and exploitation chains into session fixation, XSS, cache poisoning, and log forgery
- Includes encoding bypass techniques (double URL encoding, Unicode forms, LF-only) and a testing checklist for redirect, Set-Cookie, and logged fields
- Notes that the Java-specific
ghost-bits-cast-attackskill should be used when%0D%0Aencodings are WAF-blocked on a Java service - Designed for security testers assessing user input reflected into HTTP response headers, Location redirects, or log files
Install
$ npx -y skills add yaklang/hack-skills --skill crlf-injection -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
Details
- Repository
- github.com/yaklang/hack-skills
- Category
- Security
- First seen
- May 16, 2026
More from yaklang/hack-skills
All 102- Insecure Source Code Management3.9K
- Mobile Ssl Pinning Bypass3.9K
- Http Host Header Attacks3.9K
- Subdomain Takeover3.9K
- Web Cache Deception3.9K
- Dependency Confusion3.9K
- Expression Language Injection3.9K
- Csv Formula Injection3.9K
- Active Directory Acl Abuse3.9K
- Linux Privilege Escalation3.9K
- Clickjacking3.9K
- Active Directory Kerberos Attacks3.9K
- Jndi Injection3.9K
- Http2 Specific Attacks3.9K
- Saml Sso Assertion Attacks3.9K
- Active Directory Certificate Services3.9K
- Arbitrary Write To Rce3.9K
- Hash Attack Techniques3.9K
- Prototype Pollution3.9K
- Dns Rebinding Attacks3.9K
- Network Protocol Attacks3.9K
- Ai Ml Security3.9K
- Memory Forensics Volatility3.9K
- Windows Av Evasion3.9K
Similar to Crlf Injection
More Security
waf-bypass-techniquesSkillyaklang/hack-skills4.1K installsGeneric WAF evasion playbook covering fingerprinting, encoding, HTTP/2 and parameter-pollution tricks, and a decision tree for bypassing filters on SQLi, XSS, a
ghost-bits-cast-attackSkillyaklang/hack-skills3.6K installsJava "Ghost Bits" attack playbook: narrowing 16-bit chars to 8-bit bytes to slip SQLi, deserialization, and upload payloads past WAFs.
HTML Injection TestingSkilldavila7/claude-code-templates34.1K starsHTML injection testing skill covering reflected, stored, and POST injection with phishing and defacement payload patterns.
xss-html-injectionSkillsickn33/agentic-awesome-skills127 installsClient-side injection assessment for XSS and HTML injection that gates every probe behind written authorization.
security-payloadsPluginEyadkelleh/awesome-claude-skills-security134 starsSpecialized attack payloads for XSS, XXE, template injection, and file upload testing
Cross-Site Scripting and HTML Injection TestingSkilldavila7/claude-code-templates34.1K starsOffensive testing guide for finding and exploiting XSS and HTML injection in web applications, including CSP bypass.