Server has no HTTP timeouts — Slowloris risk on public endpoints #27
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
mod-nag
mod-nag
mod-nag
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
nagonag
nagonag/ignore
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
heiko/cert-proxy#27
Loading…
Add table
Add a link
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?
Summary
cmd/cert-proxy-server/main.go:71starts the server withhttp.Serve(listener, nil)and nohttp.Serverstruct, soReadTimeout,WriteTimeout, andIdleTimeoutare all zero (unlimited).The endpoints
/v1/cert/,/v1/chain/, and/v1/fullchain/require no client certificate, so any anonymous TCP peer can hold connections open indefinitely (Slowloris-style).Fix
Replace the bare
http.Servecall with an explicithttp.Server:AI attribution comment added per repository instruction for this open issue.\n\n(co)authored by ai:gpt-5-codex