Skip to content
Account takeover Write-up Intermediate

Bypassing 2FA to Impersonate Users on Drugs.com

Drugs.com did not verify email ownership when a user changed their account email, and the existing session stayed valid. An attacker could change the email to a victim's address, log out and back in without 2FA, and impersonate the victim while locking them out of registration.

medium.com

Published on medium.com

Hey Security Enthusiasts! A serious authentication flaw was recently discovered on Drugs.com, allowing attackers to bypass Two-Factor Authentication (2FA) and impersonate legitimate users.

Regan Temudo, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application changed the account email without re-verifying ownership or requiring 2FA, and it kept the existing authenticated session valid across the change.

Impact

An attacker could impersonate the victim and keep persistent access, while the victim is locked out because their email is already in use.

What the attacker needed

Attacker-controlled email address; ability to complete OTP verification; victim's email address known

How it was found

  1. Register an account with an attacker-controlled email and complete OTP verification, choosing to trust the device for one month.
  2. Go to Account Details and change the registered email to the victim's email.
  3. Log out and log back in; 2FA is no longer required.
  4. Cycle between the attacker's and victim's email to keep persistent access.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Two-factor authentication (2FA) is a second proof of identity, usually a code from an app or email. Here the site let a logged-in attacker swap the account email to someone else's address without proving they owned it, and the old login stayed active. After logging out and back in, the site no longer asked for the 2FA code, so the attacker effectively became that other person.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.