HTTP Header Injection / CRLF Injection
Detects user-controlled data written into HTTP response headers without CRLF stripping, enabling header injection and response splitting.
от zakirkun★ 40 звёзд на GitHub
Установить HTTP Header Injection / CRLF Injection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
HTTP Header Injection / CRLF Injection
Overview
HTTP response header injection occurs when user-controlled data is placed in HTTP response headers without stripping carriage return (\r, %0d) and newline (\n, %0a) characters. This enables:
- Response splitting: Injecting a fake second HTTP response
- XSS via header: Injecting
Set-Cookieheaders with malicious cookies - Cache poisoning: Poisoning shared proxies and CDN caches
- Open redirect: Via
Locationheader manipulation
Detection Strategy
Look for response headers that include user input from request parameters or paths.
Remediation
- Validate and sanitize all user input before placing in headers
- Strip CRLF characters (
\r\n) from any value placed in a header - Use framework's built-in header sanitization
Vulnerable (Python):
redirect_url = request.args.get('url')
response = make_response('', 302)
response.headers['Location'] = redirect_url # CRLF injection!
Safe (Python):
import re
redirect_url = re.sub(r'[\r\n]', '', request.args.get('url', ''))
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- patterns.yaml
FAQ
Что делает скилл HTTP Header Injection / CRLF Injection?
Detects user-controlled data written into HTTP response headers without CRLF stripping, enabling header injection and response splitting.
Как установить скилл HTTP Header Injection / CRLF Injection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл HTTP Header Injection / CRLF Injection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…