caddy/modules/caddyhttp/caddyauth
Venkatesh Panda f89626aa55
caddyauth: Don't write into shared hash buffer when building cache key (#8278)
HTTPBasicAuth.correctPassword built its hash cache key with
append(account.password, plaintextPassword...). account.password is
shared by all requests and can have spare capacity, so short passwords
were written into the stored hash's backing array, causing a data race
between concurrent requests and potentially mixed-up cache keys.

Build the key in a fresh buffer instead, and add regression tests.
2026-11-03 08:21:45 +00:00
..
argon2id.go basicauth: Implement argon2id (#7186) 2025-10-06 17:27:06 -06:00
basicauth.go caddyauth: Don't write into shared hash buffer when building cache key (#8278) 2026-11-03 08:21:45 +00:00
basicauth_test.go caddyauth: Don't write into shared hash buffer when building cache key (#8278) 2026-11-03 08:21:45 +00: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