header-injection
Detects HTTP response header construction from user input vulnerable to CRLF injection. Use when writing code that sets HTTP response headers using values from user input, request parameters, or external data. Also invoke when constructing email headers, Content-Disposition filenames, or Location headers from caller-controlled strings.
Install
With your agent
Install OMGSkills skill "thejefflarson/soundcheck:.claude/skills/header-injection" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.
Manual command
git clone https://github.com/thejefflarson/soundcheck /tmp/soundcheck && ln -s /tmp/soundcheck/.claude/skills/header-injection ~/.claude/skills/header-injection
From README
HTTP Header Injection Security Check (CWE-113) What this checks Protects against HTTP response header injection where user input containing CR/LF characters is included in response headers, allowing attackers to inject arbitrary headers or split the HTTP response. Exploitation leads to cache poisoning, session fixation, XSS via injected headers, and response splitting. Vulnerable patterns Response header value set directly from a request parameter with no CR/LF stripping Content-Disposition filename interpolated from user input without normalization Location redirect header built from a caller-supplied URL with no validation Forwarded request header (correlation ID, user agent, custom header) echoed into an outgoing response without sanitization Email or SMTP header value built from form input without rejecting newline characters Fix immediately Flag the vulnerable code and explain the risk.
More from this repo
authentication-failures
Detects weak password storage, flawed JWT validation, sessions surviving logout, and missing MFA in authentication code.
broken-access-control
Detects missing ownership checks, broken role enforcement, and IDOR vulnerabilities that let users access other users'...
concurrency-correctness
Detects multi-threaded code where a lock is held across a blocking operation, lock acquisition order risks deadlock,...
