SHOULD A16: Login-path robustness trio #182

Closed
opened 2026-11-12 06:30:58 +01:00 by amiryahaya · 0 comments
Owner

(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.

(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.
Sign in to join this conversation.
No milestone
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#182
No description provided.