Security vulnerabilities

  • Status Closed
  • Assigned To
    cbay
  • Private
Attached to Project: Security vulnerabilities
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:

  1. The attacker creates an account using their email address.
  1. the attacker logs in and enables 2FA.
  1. The attacker then updates their email address to the victim's.
  1. If the victim tries to register an account using their email address, they receive an error stating that the email already exists.
  1. If the victim attempts to reset the password using the "Forgot Password" feature:
  1. The victim receives the password reset link and successfully updates their password.
  1. Upon attempting to log in, the application prompts for the 2FA code.
  1. 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.

Closed by  cbay
30.12.2024 08:38
Reason for closing:  Invalid
Admin
cbay commented on 30.12.2024 08:38

Hello,

It's true, but preventing someone from signin up is not a security vulnerability.

Kind regards,
Cyril

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing