PrestaShop XSS via ValidateCore::isCleanHTML before 8.0.4 / 1.7.8.9
CVE-2023-30838 Published on April 25, 2023

PrestaShop vulnerable to possible XSS injection through Validate::isCleanHTML method
PrestaShop is an Open Source e-commerce web application. Prior to versions 8.0.4 and 1.7.8.9, the `ValidateCore::isCleanHTML()` method of Prestashop misses hijackable events which can lead to cross-site scripting (XSS) injection, allowed by the presence of pre-setup `@keyframes` methods. This XSS, which hijacks HTML attributes, can be triggered without any interaction by the visitor/administrator, which makes it as dangerous as a trivial XSS attack. Contrary to other attacks which target HTML attributes and are triggered without user interaction (such as onload / onerror which suffer from a very limited scope), this one can hijack every HTML element, which increases the danger due to a complete HTML elements scope. Versions 8.0.4 and 1.7.8.9 contain a fix for this issue.

Github Repository NVD

Vulnerability Analysis

CVE-2023-30838 is exploitable with network access, and requires small amount of user privileges. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.

Attack Vector:
NETWORK
Attack Complexity:
HIGH
Privileges Required:
LOW
User Interaction:
NONE
Scope:
CHANGED
Confidentiality Impact:
HIGH
Integrity Impact:
HIGH
Availability Impact:
HIGH

Weakness Type

What is a XSS Vulnerability?

The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

CVE-2023-30838 has been classified to as a XSS vulnerability or weakness.


Products Associated with CVE-2023-30838

Want to know whenever a new CVE is published for PrestaShop? stack.watch will email you.

 

Affected Versions

PrestaShop:

Vulnerable Packages

The following package name and versions may be associated with CVE-2023-30838

Package Manager Vulnerable Package Versions Fixed In
composer prestashop/prestashop >= 8.0.0, < 8.0.4 8.0.4
composer prestashop/prestashop < 1.7.8.9 1.7.8.9

Exploit Probability

EPSS
0.65%
Percentile
70.90%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.