M1-audit: global 'auth' rate limiter — one 20/min bucket shared by every sign-in surface #88

Closed
opened 2026-11-07 08:40:53 +01:00 by amiryahaya · 0 comments
Owner

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.

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.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/failsulit#88
No description provided.