M1-audit: global 'auth' rate limiter — one 20/min bucket shared by every sign-in surface #88
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit#88
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?
Program.cs 'auth' limiter has no partition key (unlike the per-IP auth-otp/auth-totp/auth-recovery policies beside it) and gates wallet auth, email login, OIDC authorize+callback+verify, bootstrap, invitation lookup, and /api/keys.
Trigger: 21 sign-ins in one minute (a normal morning) → 429 for users 21+; a single attacker can lock out ALL authentication for the window.
Fix: per-IP partition (same pattern as auth-totp); optionally keep a coarse global cap. Add a rate-limit test for the auth partition (none exists).
Part of M1 closure audit #84.