The vulnerability exists in the session validation logic of ZITADEL's Login v2. The core of the issue lies in the isSessionValid function, which failed to enforce MFA verification for users who had voluntarily enrolled a second factor but were not subject to an organization-wide MFA policy. This function would incorrectly deem a session as fully authenticated after only password verification.
The continueWithSession function was also complicit, as it would take this improperly validated session and continue the authentication flow, granting access to the application. An attacker knowing the user's password could exploit this by initiating a login, abandoning the MFA step, and then starting a new login, which would reuse the session that was only password-verified.
The patch addresses this by modifying isSessionValid to always check for any configured MFA methods on a user's account and require verification, regardless of the organization's policy. The continueWithSession function was also updated to call this stricter validation check before proceeding.