Account Takeover Worth $900
A subdomain shared login credentials with the main site but did not enforce the CSRF token when changing the account email. An attacker could change a victim's email address and thereby take over the main site account.
Published on medium.com
{{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
Root cause
Likely the email-change endpoint on the subdomain did not validate the CSRF token server-side, even though the form included one.
Impact
An attacker could change a victim's email and take over main site accounts, which the author describes as a high-tier asset.
What the attacker needed
A free account; victim is logged in; attacker can make victim's browser send request
How it was found
- Log in to the subdomain using the main site account credentials.
- Open the account email change request.
- Remove the CSRF token from the request and send it.
- The email change succeeds, allowing takeover of the main site account.
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.
Many websites put a hidden random value in forms, called a CSRF token, so that another site cannot silently submit the form on your behalf. Here the subdomain checked that token on some actions but not when changing the email address, so an attacker could submit that change without it. Changing the email lets the attacker control the account's recovery address, which leads to taking the account over.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.