Skip to content

2FA is enabled even if User fails to verify with TOTP code #9308

@scottsignal

Description

@scottsignal
ISSUE TYPE
  • Bug Report
COMPONENT NAME
setup2FA
CLOUDSTACK VERSION
4.19.0.1
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions