Skip to content
Access control Write-up Beginner

Simple MFA Bypass in Login and Registration — $500 Reward

The application required Gmail users to authenticate through Google OAuth as an extra security layer, but the server did not enforce this on the login endpoint, so a modified request with a Gmail address and password logged in without OAuth. The invitation-based registration flow also let a Gmail user set a password and create an account without any Google OAuth step.

medium.com

Published on medium.com

This write-up describes a security issue where Gmail OAuth-based Multi-Factor Authentication (MFA) can be bypassed in both login and registration flows of a business-focused web application.

<h1>ayman</h1> Amer‬‏, 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 Gmail OAuth requirement was enforced only in the frontend on the login endpoint and was not applied to the invitation registration flow, so the backend accepted requests that skipped it.

Impact

An attacker who already knew a Gmail user's password could log in without the Google OAuth check, and a Gmail user could create an account through an invitation without that check; the text does not claim this alone led to account takeover.

What the attacker needed

Victim's email and password known; a company invitation to a Gmail address; no existing account for that Gmail address

How it was found

  1. Start a normal login attempt using a non-Gmail email and intercept the request.
  2. Replace the email field in the request with a Gmail address.
  3. Forward the request and observe that login succeeds without any Google OAuth popup.
  4. Send a company invitation to a Gmail address that has no account yet.
  5. Open the invitation link, which shows a registration form with the Gmail address pre-filled and only asks for a password.
  6. Set a password and complete registration, creating the account without Google OAuth.

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.

Some sites make you sign in through Google instead of typing a password, as an extra check that you really own that email address. Here the website only showed that rule in the browser, so a person could edit the request being sent and skip the Google step. The same rule was also missing on the page used when joining a company through an invite link.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.