Account taken over in style !!!
The application's 'set new password' feature, shown to new users, lacked CSRF protection. An attacker could trick a logged-in user into submitting a password change request, taking over the account.
Published on medium.com
Hey guys.. Hope everyone is safe against COVID-19.
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 password-change endpoint did not require a CSRF token or re-authentication, allowing cross-site requests to change the password.
Impact
An attacker could take over any user's account by changing their password via CSRF, as demonstrated by logging in with the new password.
What the attacker needed
Victim is logged in; victim visits attacker's link; attacker has an account
How it was found
- Create an account and log in to trigger the 'set new password' popup.
- Intercept the set new password request and note the lack of CSRF protection.
- Generate a CSRF proof-of-concept page.
- Log in as another user and open the CSRF link.
- The password is changed successfully, and the old password no longer works.
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 password-change form had no protection, so an attacker could force a victim to change their password to one the attacker knows, locking the victim out.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.