Skip to content
Account takeover Write-up Intermediate

Account verification code bypass lead to a $4000 bounty

A device-unblock flow sent a four-digit code to the user's email, and the server accepted a JSON array of candidate codes instead of a single value, so one request could try many codes at once. An attacker who knew a victim's credentials could therefore get past the email verification step and unblock a device.

Mohsin Khan Follow

Published on mokhansec.medium.com

Bounty$4,000 View original

I hope you are doing well. Today I want to talk about one of my findings.

Mohsin khan, on mokhansec.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 server treated the submitted code as a list and checked each entry against the valid code, instead of requiring a single string value.

Impact

An attacker with a victim's credentials could bypass the email code check and unblock a device, weakening the account's device security; the report does not claim full account takeover.

What the attacker needed

Valid account credentials; access to the device-unblock flow; ability to intercept and modify requests

How it was found

  1. Log in and trigger the device-unblock flow that sends a four-digit code to the account email.
  2. Intercept the POST request that submits the code.
  3. Replace the single code value with a JSON array containing many candidate codes.
  4. Send the request; the server accepts it and the device is unblocked.

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.

When you log in from a new device, a site may email you a short number (a one-time code) to prove it is really you. Normally you get one guess per request, so guessing all 10,000 four-digit codes is impractical. Here the server accepted a list of guesses in a single request and checked them all, which made guessing trivial.

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 Mohsin Khan

View all

3 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.