Skip to content
Business logic Write-up Beginner

Business logic lead to Permanently Locked Any Email Out of Their Account

The email change flow marked a new email address as linked as soon as the change was started, before the OTP was confirmed, and never released it when the flow was cancelled or failed. An attacker could therefore reserve any email address permanently, blocking its real owner from signing up or recovering the account.

0xvar Follow

Published on medium.com

قَالَ اللَّهُ تَعَالَى: “يَرْفَعِ اللَّهُ الَّذِينَ آ� َنُوا � ِنكُ� ْ وَالَّذِينَ أُوتُوا الْعِلْ� َ دَرَجَاتٍ ۚ وَاللَّهُ بِ� َا تَعْ� َلُونَ خَبِيرٌ”.

0xvar, 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 backend marked the new email as linked at the moment the change was initiated rather than only after OTP confirmation, and it failed to clean up the pending record when the flow was cancelled or timed out.

Impact

The legitimate owner of the reserved email could be permanently blocked from signing up, signing in, resetting their password or contacting support, and an attacker could script this to lock many addresses; the report notes the trigger was ultimately closed as out of scope.

What the attacker needed

A free account on the site; ability to start an email change; no OTP confirmation needed

The fix

The email should only be marked as linked after the OTP is confirmed, and any pending reservation should be released when the flow is cancelled or times out.

How it was found

  1. Log in to a test account and open Account Settings, then Change Email.
  2. Enter the target email address and confirm it, then submit with the account password so an OTP is sent to that address.
  3. Do not enter the OTP; instead enter wrong codes a few times or press Cancel.
  4. Go to the sign-up page and try to register with the target email address.
  5. Observe that the site reports the email is already linked to an account.

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 change your email on a website, the site usually holds the new address for a short time while you confirm a code sent to it. Here the site kept that hold forever if you simply walked away without confirming. That means anyone could type in someone else's email, abandon the process, and stop that person from ever registering or recovering their account.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by 0xvar

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.