Files
zitadel/internal/api
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-03-11 08:21:42 +01:00
2026-08-14 06:11:39 +02:00
2026-06-15 15:36:14 +02:00
2020-11-26 09:19:14 +01:00
2026-08-14 06:12:04 +02:00
2026-06-15 15:36:14 +02:00