CVE-2019-11876: PrestaShop Cross-site Scripting vulnerability
Summary
CVE-2019-11876: PrestaShop Cross-site Scripting vulnerability. Affects prestashop/prestashop versions >= 1.7.5.2, < 1.7.6.0. Fixed in 1.7.6.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
PrestaShop is an open-source e-commerce platform that allows users to create and manage online stores. It provides a wide range of features for product management, order processing, and customer management. The vulnerability identified as CVE-2019-11876 affects PrestaShop version 1.7.5.2. This version includes an installation script component called install/index.php. The shop_country parameter in this script is susceptible to a reflected cross-site scripting (XSS) attack. Exploiting this vulnerability requires the user to follow the initial stages of the setup, including accepting terms and conditions, before executing a malicious link.
Vulnerability Detail
The vulnerability in PrestaShop 1.7.5.2 arises from a lack of proper input sanitization in the shop_country parameter of the installation script. This allows an attacker to inject malicious code that will be executed in the context of the victim's browser. The impact of this vulnerability can range from unauthorized access to sensitive information to the execution of arbitrary code on the victim's system. It is important to note that successful exploitation of this vulnerability requires user interaction during the setup process.
How To Fix
Minimum fixed version
1.7.6.0
This is the first release that contains the fix.
composer require prestashop/prestashop:1.7.6.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary workaround, users can manually sanitize the shop_country parameter in the installation script. This can be done by implementing input validation and sanitization techniques, such as HTML entity encoding or using a secure framework that automatically handles input sanitization. Here is an example of how the shop_country parameter can be sanitized using PHP's htmlspecialchars function:
$shop_country = htmlspecialchars($_GET['shop_country'], ENT_QUOTES, 'UTF-8');
Conclusion
In conclusion, the CVE-2019-11876 vulnerability in PrestaShop version 1.7.5.2 allows for a reflected XSS attack through the shop_country parameter in the installation script. Users can mitigate this vulnerability by upgrading to PrestaShop version 1.7.6.0 or later. It is important to regularly update PrestaShop to ensure the latest security patches are applied. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for prestashop/prestashop →
FAQ
PrestaShop is an open-source e-commerce platform that allows users to create and manage online stores. It provides a wide range of features for product management, order processing, and customer management.
A reflected cross-site scripting (XSS) attack is a type of security vulnerability that allows an attacker to inject malicious scripts into web pages viewed by other users. The injected scripts are executed in the victim's browser, potentially leading to unauthorized access to sensitive information or the execution of arbitrary code.
The CVE-2019-11876 vulnerability affects PrestaShop version 1.7.5.2. It allows an attacker to perform a reflected XSS attack by exploiting the shop_country parameter in the installation script. Successful exploitation of this vulnerability requires user interaction during the setup process.
To fix the CVE-2019-11876 vulnerability, users should upgrade to PrestaShop version 1.7.6.0 or later. The updated version includes a fix for the XSS vulnerability in the installation script. Users can download the latest version from the official PrestaShop website and follow the upgrade instructions provided.
As a temporary workaround, users can manually sanitize the shop_country parameter in the installation script. This can be done by implementing input validation and sanitization techniques, such as HTML entity encoding or using a secure framework that automatically handles input sanitization.
Related vulnerabilities
Recent vulnerabilities recorded for prestashop/prestashop.