PT-2024-18979 · Unknown · Prestashop
Rona Febriana
·
Published
2024-01-02
·
Updated
2024-03-06
·
CVE-2024-21628
CVSS v3.1
5.4
Medium
| Vector | AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:N/A:L |
Name of the Vulnerable Software and Affected Versions
PrestaShop versions prior to 8.1.3
Description
PrestaShop is an open-source e-commerce platform. The issue arises because the
isCleanHtml method is not used on a specific form, allowing the storage of a cross-site scripting payload in the database. The impact is low due to twig's escape mechanism, which prevents HTML interpretation in the back office (BO). However, in the front office (FO), the cross-site scripting attack can be effective but only affects the customer who sent it or the customer session from which it was sent. This issue particularly affects those with a module that fetches and displays these messages from the database without escaping HTML.Recommendations
For PrestaShop versions prior to 8.1.3, update to version 8.1.3, which contains a patch for this issue. As a temporary workaround, consider disabling any modules that fetch and display messages from the database without proper HTML escaping until the patch can be applied. Restrict access to modules that may be vulnerable to this issue to minimize the risk of exploitation. Avoid using modules that display unescaped HTML content from the database in the front office until the issue is resolved.
Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Prestashop