Control Chars β Cookie Handling
| Test ID | COOK-CONTROL-CHARS |
| Category | Cookies |
| Scored | No |
| RFC Level | N/A |
| Expected | 400 (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
- RFC 6265 Β§5.4 β Cookie header
Http11Probe β HTTP/1.1 compliance & smuggling testerSource on GitHub