Skip to content
Business logic Write-up Intermediate

Be careful — I could steal your identity | Business logic

The change-email feature accepted an array of emails and a non-breaking space appended to a victim's email, causing the verification token to be sent to the attacker's email instead. An attacker could then verify the victim's email address and impersonate them on the platform.

MahmoudKroush Follow

Published on medium.com

بس� الله، والصلاة والسلا� على رسول الله الح� د لله الذي عَلَّ� َ بالقل� .. عَلَّ� َ الإنسانَ � ا ل� يَعْلَ� والصلاةُ والسلا� ُ على خيرِ � ُعَلِّ� ي الناسِ الخير � ح� د

MahmoudKroush (xgoon), 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

Impact

An attacker could impersonate the victim on the platform, for example by sending invitations that appear to come from the victim's email address.

What the attacker needed

A free account; attacker controls an email address; victim's email address known

The fix

The email field should be strictly validated as a single string, whitespace should be normalised, and the verification token should only be sent to the exact new email address.

How it was found

  1. Change email from current to attacker email and intercept the request.
  2. Request to change attacker email to victim email with a non-breaking space appended.
  3. Receive the OTP at the attacker email and confirm it.
  4. Access the account and change the name and photo to the victim's.

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 should send a verification code to the new address. Here, the site mishandled unusual input (a list of emails and a hidden space character), so the code went to the attacker's email instead. The attacker could then confirm the victim's email address and act as that person.

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 MahmoudKroush

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.