CSRF TO ACCOUNT TAKEOVER
The profile settings page did not show an email change option, but the underlying request accepted an email change without CSRF protection. An attacker could craft a page that changes a victim's email, then reset the password to take over the account.
medium.com
Published on medium.com
Today I am going to explain how I got the vulnerability of CSRF to Account Takeover…. Free link
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 profile update endpoint lacked CSRF tokens or other request verification, allowing an email change via a forged request.
Impact
An attacker could change a victim's email address and then reset the password to fully take over the account.
What the attacker needed
Victim logged in; victim visits attacker page
How it was found
- Register an account and inspect profile settings.
- Intercept the profile update request and notice the email can be changed.
- Generate a CSRF proof-of-concept that changes the email.
- Open the proof-of-concept in a browser and observe the email change.
- Log out, reset the password using the new email, and take over the 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.
Cross-Site Request Forgery (CSRF) is when a malicious website makes a logged-in user's browser send a request to another site without the user knowing. Here, the profile update request had no protection, so an attacker could trick a victim into changing their email address. Once the email was changed, the attacker could reset the password and control the account.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.