Account Takeover via Insecure Email Change — Critical Vuln
An API endpoint for renaming a user's email accepted a victim's email and an attacker's email without any authorisation or ownership check. An attacker could change any user's email to one they control, leading to full account takeover.
While conducting testing on one of the platforms, I discovered a serious Account Takeover (ATO) vulnerability that allows an attacker to take complete control of any user’s account by changing the email associated with the account to one controlled by the attacker, without any additional verification or authentication.
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 email-change endpoint lacked any authorisation or ownership validation, trusting the email addresses supplied in the request.
Impact
An attacker could take full control over any user's account.
What the attacker needed
Knowledge of victim's email; no authentication required
The fix
The email-change endpoint should be fixed to require authentication and verify that the requester owns the account being modified.
How it was found
- Create a new account and explore the platform's features.
- Notice that most operations use REST API paths under /Api/v2.0/.
- Review the endpoints captured in Burp and identify user, profile and account paths.
- Try common action words on the user endpoint and find that /Api/v2.0/User/Rename responds asking for emailId and renameEmailId parameters.
- Send the victim's email as emailId and the attacker's email as renameEmailId.
- Observe that the victim's email is changed to the attacker's email.
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.
The platform had a hidden web address (an API endpoint) that let someone change the email linked to an account. It did not check whether the person making the request actually owned that account. So anyone who knew or guessed a victim's email address could swap it for their own and then reset the password to take over the account.
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.