Skip to content
Account takeover Write-up Beginner

How I Bypass 2FA through confirmation link..

A confirmation link sent by email logged the user straight into the account without asking for the second factor. An attacker who had the link could skip the 2FA step entirely.

medium.com

Published on medium.com

🚴in this article, I’ll share a real-world vulnerability I discovered during my bug bounty research on a website that allowed me to bypass 2FA completely, all thanks to the confirmation link sent to my email.

Aftab Raja, 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 email confirmation endpoint created an authenticated session instead of only marking the address as verified, so it bypassed the 2FA gate.

Impact

Anyone who obtained the confirmation link could log in without the second factor, so the 2FA protection could be bypassed.

What the attacker needed

A free account; access to the confirmation email link

How it was found

  1. Create an account and receive the confirmation link by email.
  2. Enable 2FA before confirming the account through the link.
  3. Log out and try to log in again; the site asks for a 2FA code.
  4. Click the confirmation link from the email.
  5. The link logs you in without asking for the 2FA 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 check, like a code from your phone, after your password. Here, the email link meant to confirm your address also signed you in, so the second check was skipped. Anyone holding that link could get in without the code.

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.