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.
Has the problem been patched? What versions should users upgrade to?
The problem is patched with Version 20.10.1 or higher.
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
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 Mage_Core_Model_Security_HtmlEscapedString
Credit goes to Aakash Adhikari @justlife4x4 for finding this issue
{ "nvd_published_at": "2024-07-29T15:15:16Z", "cwe_ids": [ "CWE-79" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2024-07-29T16:38:20Z" }