How I Took Over Accounts by Disabling 2FA Without Even Logging In
The password reset endpoint disabled two-factor authentication on the account as soon as a reset request was submitted, without requiring the reset link to be used. An attacker who knew a victim's email and password could therefore log in without the second factor and enrol their own authenticator, locking the owner out.
It all started like any other day, browsing through a web application for vulnerabilities. But this time, something caught my eye: a subdomain, admin-partner.target.com, used by the company’s partners.
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 password reset routine cleared the account's 2FA state when a reset was requested, rather than only after a valid reset token was used, and the login response also disclosed whether 2FA was enabled.
Impact
An attacker with a victim's email and password could take over the account without the second factor and replace the victim's 2FA, locking the owner out; the text does not say whether the reset email itself had to be opened.
What the attacker needed
Victim's email address; victim's password; access to the partner login subdomain
How it was found
- Find the partner login subdomain and note registration, login, password reset and TOTP 2FA.
- Create an account and enable 2FA to study the flow.
- Observe that the first 2FA code from setup is still accepted after activation.
- Send password reset requests and use the differing responses to confirm which emails exist.
- Submit a reset request for a valid email, then log in with the known password.
- See that the login response now reports 2FA as disabled, and set up a new authenticator.
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 short code from an app, asked for after the password. Here, simply asking the site to reset an account's password silently switched that second check off, so anyone with the password could get in and then attach their own code app. The real owner would then be locked out of their own account.
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.