CSRF bug on password change
The reporter claimed a cross-site request forgery flaw in the password change endpoint, saying an attacker could change a victim's password without their permission. The program rejected the claim, stating the endpoint correctly rejected the invalid request and no CSRF existed.
Originally disclosed on HackerOne
- Disclosed after 3 months
Summary by the program
There was not CSRF, the endpoint was correctly responding to the invalid request.
The report
NOTE! Thanks for submitting a report! Please replace all the [square] sections below with the pertinent details. Remember, researchers are more likely to earn a larger bounty by explaining how a vulnerability can be exploited to cause harm to Coinbase or its users.
Summary: Attacker can change password without user permission
**Description:**HI I found csrf bug on password changing session. It can be dangerous for user. Cause attacker can change password with out user permission. CSRF POC is below :-
<html> <body> <form action="https://www.coinbase.com/users/59215b8f0ec7c37a4ca27b00/password_reset" method="POST"> <input type="hidden" name="utf8" value="✓" /> <input type="hidden" name="_method" value="patch" /> <input type="hidden" name="old_password" value="dadaboji1" /> <input type="hidden" name="password" value="dadaboji" /> <input type="hidden" name="password_confirmation" value="dadaboji" /> <input type="submit" value="Submit request" /> </form> </body> </html>Browsers Verified In:
- [firefox 45.9.0]
- [add each browser and version number tested in]
Steps To Reproduce:
(Add details for how we can reproduce the issue)
- [Intercept with burpsuite. After change password click]
- [Make CSRF POC with burpsuite]
- [change data]
Supporting Material/References:
- List any additional material (e.g. screenshots, logs, etc.)
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely no vulnerability existed: the endpoint rejected the forged request, so the reporter's assumption that it would accept it was wrong.
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 report has not been written yet. The Original tab links to the source.
Cross-site request forgery is when a malicious page makes a logged-in user's browser send a request to another site, hoping the site trusts the request because the user is signed in. Here the researcher said the password change form could be triggered this way, but the site's own review found the request was rejected, so nothing could be changed.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.