Audit(#66): wallet authenticate skips suspended check + GLOBAL 10k session cap = platform sign-in lockout DoS #104
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#104
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?
Authenticate.cs:47-59 never reads
user.Status(every other sign-in surface rejects suspended accounts). Sessions live in a GLOBALMaxSessions = 10_000in-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 != Activein Authenticate before CreateAuthenticatedSession; make the session cap per-account (or add one in the Redis store).M1.5 close audit (#66).