Commit Graph

2 Commits

Author SHA1 Message Date
Ahmet Alp Balkan
9130a99d5b fix gofmt 2026-03-26 23:12:42 -04:00
Ahmet Alp Balkan
19d813d567 Use case-insensitive comparison for Connection upgrade header
The isUpgrade() check used exact string match (== "Upgrade") for the
Connection header value. A client sending "Connection: upgrade"
(lowercase) would bypass this check. While not exploitable in practice
(the Upgrade header check catches real upgrades), this hardens the
proxy with defense-in-depth.

Also adds a comprehensive security test suite covering jailbreak
attempts: method override smuggling, path traversal, dryRun parameter
injection, upgrade header smuggling, review endpoint spoofing, unusual
HTTP methods, concurrent request filtering, and credential leakage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 23:06:39 -04:00