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.
Published 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
- Change email from current to attacker email and intercept the request.
- Request to change attacker email to victim email with a non-breaking space appended.
- Receive the OTP at the attacker email and confirm it.
- 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.