Skip to content
Account takeover Write-up Beginner

From Curiosity to Cash: How I Bypassed 2FA and Earned $300!

The application issued a session cookie after password authentication but before 2FA verification, and that cookie was accepted by authenticated endpoints. An attacker with valid credentials could skip the second factor and access the account.

an.anonymous.school Follow

Published on medium.com

Hey everyone! Today, I’m super excited to share a thrilling journey from a casual bug hunt to a $300 bounty.

Zer0Figure, 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

The application treated a session created after password entry as fully authenticated before the second factor was verified.

Impact

An attacker with a valid username and password could bypass 2FA and gain unauthorised access to a user's account.

What the attacker needed

A valid account with 2FA enabled; knowledge of the victim's password

The fix

The application should only treat a session as authenticated after successful 2FA verification, and reject unverified sessions on protected endpoints.

How it was found

  1. Log in with username and password and intercept the login request.
  2. Forward the request and note the session cookie set before 2FA.
  3. Do not enter the 2FA code.
  4. Send a request to an authenticated endpoint using that cookie.
  5. Observe that the authenticated page is returned.

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) adds a second step, like a code sent to your phone, after your password. Here the site gave a working login cookie too early, so someone who knew only the password could ignore the code and still 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.

More by an.anonymous.school

View all

2 more disclosed reports, best first.

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.