Skip to content
Account takeover Write-up Beginner

Alternative link

After logging in with a password, the site asked for a 2FA code on a dedicated page, but navigating directly to the dashboard URL skipped that check. An attacker who knew the password could reach the account without the second factor.

motaha22.github.io

Published on motaha22.github.io

Hi, I would like to share how I was able to bypass 2FA. This is a private program on Hackerone, so we will call it example.com.

Mohamed Taha, on motaha22.github.io

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 dashboard page did not check whether the 2FA step had been completed, so the check existed only on the code-entry page.

What the attacker needed

Victim's password known; 2FA enabled on the account

How it was found

  1. Enable 2FA on the account.
  2. Log out and log in again with the password.
  3. Note the URL of the 2FA code page.
  4. Navigate directly to the dashboard URL instead of entering the code.

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 a phone app, asked after the password. Here the site only showed the code page but did not actually require it before loading the account pages. So anyone with the password could simply type the dashboard address and get in.

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.