Upstream response headers forwarded verbatim (request smuggling) #5
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: High
proxyChatCompletionsatcmd/ocgo/main.go:431-433blindly copies all upstream response headers to the client viacopyHeaders(). If the upstream (opencode.ai) were ever compromised or misconfigured, this enables HTTP response splitting and header injection.Fix: Only forward specific allowlisted headers (e.g.
Content-Type) and strip all others.