- Status Closed
-
Assigned To
cbay - Private
Opened by rofes - 29.12.2024
Last edited by cbay - 30.12.2024
FS#120 - Authentication Bypass - 2FA Bypass: Account Lockout Without Email Verification
Summary:
During testing, I discovered that the 2FA (Two-Factor Authentication) feature can be abused to block legitimate users from registering on the platform. This vulnerability arises because the application allows users to update their email addresses without disabling 2FA. When users update their email while 2FA is enabled, the application requires the 2FA code to log in with the new email. An attacker can exploit this flaw by registering an account using his email, enabling 2FA, and then updating the account's email to the victim's. This process effectively locks the victim out of their email address and prevents them from registering to the platform.
Steps to Reproduce:
- create account at : https://admin.alwaysdata.com/admin/details/
- The attacker creates an account using their email address.
- the attacker logs in and enables 2FA.
- The attacker then updates their email address to the victim's.
- If the victim tries to register an account using their email address, they receive an error stating that the email already exists.
- If the victim attempts to reset the password using the "Forgot Password" feature:
- The victim receives the password reset link and successfully updates their password.
- Upon attempting to log in, the application prompts for the 2FA code.
- Since the victim cannot access the 2FA code the attacker sets, they cannot log in.
PoC :
https://drive.google.com/file/d/1iKnoKLZXCREeIidrOzvH2SXDNDLPqsLH/view?usp=sharing
Impact
This behavior effectively locks the victim out of their email address, preventing them from registering or accessing an account on the platform.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Hello,
It's true, but preventing someone from signin up is not a security vulnerability.
Kind regards,
Cyril