Public repository for Agent Skills
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
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)
1# SKILL: CRLF Injection — Expert Attack Playbook23> **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.45## 0. RELATED ROUTING67- [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)89## 1. CORE CONCEPT1011CRLF = `\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.1213```14Normal: Location: /page?url=USER_INPUT15Attack: Location: /page?url=%0D%0ASet-Cookie:admin=true16Result: Two headers — Location + injected Set-Cookie17```1819---2021## 2. DETECTION2223### Basic Probe2425```text26%0D%0ANew-Header:injected2728# In URL parameter:29https://target.com/redirect?url=%0D%0AX-Injected:true3031# Check response headers for "X-Injected: true"32```3334### Double CRLF — Body Injection3536Two consecutive CRLF sequences end headers and start body:3738```text39…
Excerpt shown under the repository's MIT license.
More skills in hack-skills
Similar skill repositories
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
The open-source app everyone uses to manage agents at work
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.
A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows
OmO: Just type "mass ulw" keyword with your prompt. Now you are the master of graph engineering.
