ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
Ubuntu 22.04
Single-node Management Server
MySQL 5.7
SUMMARY
2FA is enabled on a user even if user fails to verify TOTP auth code to enable
STEPS TO REPRODUCE
Create a user that is set to enable in 2FA upon login
Choose either Google Authenticator or Other TOTP and click Setup
Enter the wrong Token on accident and you are kicked back to login.
Try logging in again and you are presented with a 2FA screen, however, you were never successfully enrolled so TOTP codes do not work.
EXPECTED RESULTS
Account isn't enrolled in 2FA until they verify with a code from their TOTP application
ACTUAL RESULTS
Account is enrolled in 2FA without a valid TOTP