security: avoid logging Basic auth material (ai:gpt-5) #55
Labels
No labels
nagonag
nagonag/ignore
bug
doc
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
IUS/once#55
Loading…
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?
Finding from a whole-codebase security review.
Affected code:
Impact:
Malformed Authorization headers can place credential-like material into application logs. For example, a decoded Basic payload without the expected delimiter is logged in full. Logs often have a wider audience and longer retention than request handling, so authentication material should not be copied there even on parse errors.
Suggested fix:
implement secret obfuscation. and add --debug-show-secrets for advanced debugging