M1-audit: OidcVerify registration branch bypasses provisioning invariants #90

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

OidcVerify.cs:132-186 hand-rolls registration: sets invitation.Status=Accepted (175) with no Pending guard (concurrent accepts → 500 on UserTenant PK), no Suspended check on the auto-link path (membership granted to suspended users), no admin TOTP gating (a TotpEnabled admin gets an MFA-free session) — while OidcCallback routes through UserProvisioningService and OidcVerify's own existing-login branch applies the admin/MFA logic.

Fix: replace 132-186 with ProvisionInviteeAsync + reuse the existing isAdmin/mfaRequired session logic. Tests: duplicate-accept, suspended, admin-TOTP.

Part of M1 closure audit #84.

OidcVerify.cs:132-186 hand-rolls registration: sets invitation.Status=Accepted (175) with no Pending guard (concurrent accepts → 500 on UserTenant PK), no Suspended check on the auto-link path (membership granted to suspended users), no admin TOTP gating (a TotpEnabled admin gets an MFA-free session) — while OidcCallback routes through UserProvisioningService and OidcVerify's own existing-login branch applies the admin/MFA logic. **Fix**: replace 132-186 with ProvisionInviteeAsync + reuse the existing isAdmin/mfaRequired session logic. Tests: duplicate-accept, suspended, admin-TOTP. 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#90
No description provided.