New advertisers: 50% off your first month with code FIRSTMONTHSee slots
yaklang avatar

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
View on GitHub

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-attack skill should be used when %0D%0A encodings 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 -y

Installs 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\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)

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

Similar to Crlf Injection

More Security