CONTROL-CHARS

Test IDCOOK-CONTROL-CHARS
CategoryCookies
ScoredNo
RFC LevelN/A
Expected400 (rejected) or 2xx without control chars

What it sends

Control characters (0x01-0x03) in cookie value — dangerous if preserved.

GET /echo HTTP/1.1\r\n
Host: localhost:8080\r\n
Cookie: foo=\x01\x02\x03\r\n
\r\n

Why it matters

Control characters in cookie values violate RFC 6265’s cookie-octet grammar and can enable response splitting or log injection if passed through to output.

Verdicts

  • Pass — 400 rejected, or 2xx with control chars stripped
  • Fail — 2xx with control chars preserved (dangerous), or 500

Sources