Audit(#66): wallet authenticate skips suspended check + GLOBAL 10k session cap = platform sign-in lockout DoS #104

Closed
opened 2026-11-07 19:22:51 +01:00 by amiryahaya · 0 comments
Owner

Authenticate.cs:47-59 never reads user.Status (every other sign-in surface rejects suspended accounts). Sessions live in a GLOBAL MaxSessions = 10_000 in-memory store (SDK SessionStoreOptions:18; Redis store has no cap).

Trigger: a suspended wallet user loops /api/auth/ssdid/authenticate → 10k sessions in the 60-min idle TTL → EVERY new sign-in platform-wide returns 503 'Session limit exceeded' until entries age out; repeatable indefinitely. With Redis: unbounded keyspace growth.

Fix: reject Status != Active in Authenticate before CreateAuthenticatedSession; make the session cap per-account (or add one in the Redis store).

M1.5 close audit (#66).

Authenticate.cs:47-59 never reads `user.Status` (every other sign-in surface rejects suspended accounts). Sessions live in a GLOBAL `MaxSessions = 10_000` in-memory store (SDK SessionStoreOptions:18; Redis store has no cap). **Trigger**: a suspended wallet user loops /api/auth/ssdid/authenticate → 10k sessions in the 60-min idle TTL → EVERY new sign-in platform-wide returns 503 'Session limit exceeded' until entries age out; repeatable indefinitely. With Redis: unbounded keyspace growth. **Fix**: reject `Status != Active` in Authenticate before CreateAuthenticatedSession; make the session cap per-account (or add one in the Redis store). M1.5 close audit (#66).
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#104
No description provided.