Full Account Takeover via Changing Email And Password of any User through API Parameters
The change-password API accepted an email and new password as request parameters, so a logged-in attacker could supply another user's email and set a new password for that account. This let the attacker take over any user's account, which the author confirmed by changing other users' passwords.
Published on web.archive.org
{{media:0}}
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 change the email and password of any user and thereby take over their account.
What the attacker needed
A free account on the site; a proxy tool to intercept requests
The fix
The change-password endpoint should identify the account from the authenticated session and ignore any client-supplied email, and it was fixed according to the timeline.
How it was found
- Log in with your own account and open the change-password function.
- Intercept the change-password request with a proxy tool.
- Send the request to the repeater and change the email and password parameters to another user's values.
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 password, the website sends a request to its server. Here that request included the account's email address as a field the user could edit, and the server trusted it instead of using the logged-in user's own identity. So an attacker could put someone else's email in and set a new password for that person's 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.