CVE-2024-41676: Magento LTS vulnerable to stored Cross-site Scripting (XSS) in admin system configs

Published Jul 29, 2024
·
Updated

Impact

This XSS vulnerability is about the system configs design/header/welcome design/header/logosrc design/header/logosrcsmall design/header/logoalt

They are intended to enable admins to set a text in the two cases, and to define an image url for the other two cases. But because of previously missing escaping allowed to input arbitrary html and as a consequence also arbitrary JavaScript.

While this is in most usage scenarios not a relevant issue, some people work with more restrictive roles in the backend. Here the ability to inject JavaScript with these settings would be an unintended and unwanted privilege.

Patches Has the problem been patched? What versions should users upgrade to?

The problem is patched with Version 20.10.1 or higher.

Workarounds Is there a way for users to fix or remediate the vulnerability without upgrading?

Possible mitigations are Restricting access to the System Configs checking templates where these settings are used to apply proper html filtering

For Users relying on this possibility

Some Users might actually rely on the ability to use html there. You can restore the previous behavior by making use of the new introduced ->getUnescapedValue() method on this escaped elements. Developers should have a look at the newly introduced MageCoreModelSecurityHtmlEscapedString

Credit

Credit goes to Aakash Adhikari @justlife4x4 for finding this issue

Other sources

Magento-lts is a long-term support alternative to Magento Community Edition (CE). This XSS vulnerability affects the design/header/welcome, design/header/logosrc, design/header/logosrcsmall, and design/header/logoalt system configs.They are intended to enable admins to set a text in the two cases, and to define an image url for the other two cases. But because of previously missing escaping allowed to input arbitrary html and as a consequence also arbitrary JavaScript. The problem is patched with Version 20.10.1 or higher.

MITRE

Affected Software

2 affected componentsFixes available
composer/openmage/magento-lts<20.10.1
20.10.1
OpenMage Magento<20.10.1

Event History

Jul 29, 2024
CVE Published
via MITRE·02:46 PM
Data Sourced
via MITRE·02:46 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·04:38 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-41676?

CVE-2024-41676 is classified as a cross-site scripting (XSS) vulnerability affecting OpenMage Magento LTS versions up to 20.10.1.

2

How do I fix CVE-2024-41676?

To fix CVE-2024-41676, administrators should upgrade to the latest version of OpenMage Magento LTS that addresses this XSS vulnerability.

3

What software is affected by CVE-2024-41676?

CVE-2024-41676 affects OpenMage Magento LTS versions up to 20.10.1.

4

What are the potential impacts of CVE-2024-41676?

The potential impacts of CVE-2024-41676 include unauthorized access and execution of scripts that can compromise user data or session.

5

Who can be exploited by CVE-2024-41676?

CVE-2024-41676 can be exploited by attackers who can manipulate the system's configurations through XSS in the specified header settings.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203