0-Click ATO: How I Can Take Over Every Account on the Website
The password reset endpoint accepted an email address from the request body and relied on a client-supplied frm_check token to confirm the email had not been changed. By removing that token, an attacker could set a new password for any account, including administrators, without any user interaction.
medium.com
Published on medium.com
Hello, Hackers! I hope you’re all doing well.
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 reset-password handler trusted the email address supplied in the request and treated the frm_check parameter as the only guard, so omitting frm_check removed the check altogether.
Impact
An attacker could change the password of any account on the site, including admin accounts, gaining full access without any action from the victim.
What the attacker needed
No victim interaction; knowledge of the victim's email
How it was found
- Create an account and go through the normal password reset flow to receive the reset link.
- Open the reset link, enter a new password and submit the change request.
- Notice that the request body contains your email address and a frm_check parameter.
- Replace your email with the victim's email and remove the frm_check parameter.
- Submit the request; it returns a redirect to the login page.
- Log in as the victim using the new 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 reset a password, the website should only change the password for the account that owns the reset link. Here the site trusted a value sent by the browser to decide whose password to change, and it skipped that check entirely when the value was missing. That let anyone choose another person's email and set a new password for them.
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.