Server error responses leak internal file paths to clients #29
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#29
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
Several places in
cmd/cert-proxy-server/serve.gopass raw Go OS errors directly tohttp.Error:Go's
os.Openerrors include the full file path, e.g.:This tells any client (including unauthenticated ones on public endpoints) the exact on-disk layout of the certbase.
Fix
Log the detailed error server-side and return a generic message to the client:
AI attribution comment added per repository instruction for this open issue.\n\n(co)authored by ai:gpt-5-codex