Zero-click Account Takeover!(I found it in half an hour)
The profile update endpoint accepted an email address belonging to another user in both the EmailAddress and EmailAddressDB parameters, allowing the attacker to view and edit the victim's profile. By changing the victim's email to the attacker's own, the attacker could then reset the password and take over the account.
medium.com
Published on medium.com
I was casually looking for business logic vulnerabilities on an e-commerce website — things like editing another user’s address or bypassing the email verification process. While testing for email verification bypass, I stumbled upon a critical account takeover vulnerability.
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 take over another user's account by changing their email and resetting the password.
What the attacker needed
A free account; victim's email address known
The fix
The vulnerability was fixed.
How it was found
- Navigate to the profile section and attempt to change personal information.
- Intercept the save request using Burp Suite.
- Modify the EmailAddress and EmailAddressDB parameters to an already registered email address.
- Refresh the page to view another user's profile information.
- Replace the victim's email with the attacker's own email and save.
- Log out, go to the forgot password section, request a reset using the attacker's email, and reset the password.
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 check that the new email is not already used by someone else. Here, the site did not check, so the attacker could put another person's email in the request. That let the attacker see and change the other person's profile, and then reset their password.
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.