CSRF Account Takeover: Rejected by the Security Team, Rewarded by the Security Director ($$titlerpar;
The email change endpoint lacked CSRF protection, so an attacker could silently change a victim's email to one they control. The attacker could then trigger a password reset and take over the account.
Published on medium.com
Today I want to share an interesting bug bounty experience that taught me an important lesson: sometimes a finding can be technically valid, yet fall into a gray area because of ownership and scope.
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 a victim's account by changing their email and resetting the password, though enabling multi-factor authentication would significantly reduce the impact.
What the attacker needed
Victim is logged in; victim visits attacker page
How it was found
- Victim remains logged in.
- Victim visits attacker-controlled page.
- Browser automatically submits the request.
- Victim’s email address gets 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.
CSRF (Cross-Site Request Forgery) is when a malicious website makes a logged-in user's browser send a request to another site without the user knowing. Here, the email change form had no protection, so visiting a bad page could change the victim's email. The attacker then used the password reset to get into the account.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.