caddy/modules/caddyhttp/caddyauth
Matthew Holt a6af063626 caddyauth: cache only successful password comparisons
Failed comparisons for missing accounts all used the same fake hash, so
their cached results returned quickly while failures for real accounts
did not, leaking which usernames exist. Cache only successful
comparisons and scope cache keys to the username.

Addresses scan report 430e037dbf6a4fd3.

Code written by GitHub Copilot (GPT-6.1 Sol, Claude Opus 5.5); reviewed by mholt.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-11 11:06:40 -07:00
..
argon2id.go basicauth: Implement argon2id (#7186) 2025-10-06 17:27:06 -06:00
basicauth.go caddyauth: cache only successful password comparisons 2026-11-11 11:06:40 -07:00
basicauth_test.go caddyauth: cache only successful password comparisons 2026-11-11 11:06:40 -07:00
bcrypt.go basicauth: Implement argon2id (#7186) 2025-10-06 17:27:06 -06:00
caddyauth.go caddyauth: isolate provider responses to prevent cross-provider clobbering (#7904) 2026-08-01 12:19:27 +10:00
caddyauth_test.go caddyauth: isolate provider responses to prevent cross-provider clobbering (#7904) 2026-08-01 12:19:27 +10:00
caddyfile.go caddyauth: support third-party hash modules (#8063) 2026-11-01 02:34:51 +00:00
command.go caddyauth: support third-party hash modules (#8063) 2026-11-01 02:34:51 +00:00
command_test.go caddyauth: handle CRLF and unterminated hash-password input (#8227) 2026-10-16 22:29:54 +10:00
hashes_test.go caddyauth: support third-party hash modules (#8063) 2026-11-01 02:34:51 +00:00