SHOULD A16: Login-path robustness trio #182
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#182
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?
(a) EmailService.cs:137-145 SendOtpAsync swallows all exceptions -> every caller's 503 branch dead, onboarding 200s with nothing delivered. (b) TotpEncryption.cs:67-69 Decrypt slices combined[..12] unguarded -> one truncated TotpSecret row = 500 on every login forever (intended: 401+audit per #110-7). (c) pre-#59 mixed-case Email rows never match lowercased lookups on any email path (TotpVerify:37, TotpRecovery:35, TotpRecoveryVerify:38, EmailRegister:54, EmailLogin:30, RekeyRecovery:70, Bootstrap:99/111/194) -> permanent uniform 401. Fixes: let SendOtp throw; length-guard to CryptographicException; one-time lower(Email) migration.