Skip to content
Account takeover Write-up Beginner

2FA bypass by reading the documentation

One API method used basic authentication with only email and password, bypassing the two-factor authentication required for obtaining an API key. An attacker who already knew a user's credentials could call that method without completing 2FA.

Brandon Roldan Follow

Published on noob3xploiter.medium.com

Bounty$100 View original

This is a fairly simple and short writeup, but i think is worth sharing, so lets get started.

Brandon Roldan, on noob3xploiter.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 an inconsistent authentication design where one API endpoint used basic authentication instead of the API key that enforced 2FA.

Impact

An attacker who already knows a user's email and password could use that one API method without passing 2FA, though the report notes it was rated low because credentials are required and only one method was affected.

What the attacker needed

Knowledge of the target's email and password; access to the API documentation

The fix

The issue was fixed, though the report does not describe the exact change.

How it was found

  1. Read the API documentation and note that most methods require an API key obtained after 2FA login.
  2. Find an API method that uses basic authentication with only email and password.
  3. Send a request to that method with valid credentials and observe it succeeds without 2FA.

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, most of the site's API required a special key that you could only get after passing 2FA. But one API method skipped that key and accepted just the email and password, so someone with the password could use it without the second check.

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 Brandon Roldan

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.