Files
zitadel/internal
522b0ed7ed Merge commit from fork
The Login V1 MFA init/enrollment handlers acted on authReq.UserID via
setUserContext without verifying the auth request had completed its
first factor. A request that only submitted a loginname could enroll
TOTP/SMS/Email/U2F factors and overwrite the victim's phone number, and
the discrepant errors bypassed IgnoreUnknownUsernames.

Gate the enrollment handlers on PossibleSteps[0] == *domain.MFAPromptStep,
which nextSteps only yields after firstFactorChecked passes.

Co-authored-by: Claude Opus 4.8 <[email protected]>
2026-08-14 06:12:04 +02:00
..
2026-08-14 06:12:04 +02:00
2026-07-29 05:45:56 +02:00
2026-08-14 06:11:39 +02:00
2026-06-15 15:36:14 +02:00
2026-08-14 06:11:39 +02:00
2026-06-15 15:36:14 +02:00
2026-06-15 15:36:14 +02:00
2026-06-15 15:36:14 +02:00
2024-01-02 14:26:31 +00:00
2025-06-27 17:25:44 +02:00
2026-02-04 11:51:43 +01:00