PrestaShop Security Vulnerability
Attackers are exploiting a vulnerability in PHPUnit with arbitrary code on servers running PrestaShop websites in order to gain complete site control. All versions prior to PHPUnit 7.5.19 and 8.5.1 are vulnerable. What can happen if an attacker gains access to your website? They can steal your data and that of your customers, damaging your integrity as a company and your results. Therefore, it is important to check if there is a directory called " phpunit " in the FTP of our online store, which is, as we have said, what makes our website vulnerable to this malware. It is a development library and is not necessary for the normal operation of the website, so removing it is the best option to prevent the attack.PHPUnit Vulnerability Checker Module
In order to check if your website is vulnerable to these attacks, at Línea Gráfica we have developed a PHPUnit PrestaShop 1.6 and 1.7 vulnerability checker module that will allow you to analyze all the files in this library (phpunit) and will give you the option to permanently delete them, putting an end to the potential threat. This task can be done manually, but if you have many modules it can be a very slow process, which is why it is advisable to use this new Línea Gráfica module. How does the PHPUnit vulnerability checker module work ? It automatically scans all possible PrestaShop directories and all the modules we have installed, looking for the PHPUnit library. After this search, it provides us with a list of all the libraries found, giving us the option to delete them. It is important to note that this is a free distribution module . If no modules are found containing the “phpunit” folder, your store is not vulnerable to this type of attack.Committed online store
Even if we perform this analysis and remove the directories that make our website vulnerable, it is possible that our online store has already been compromised. Most attackers place files or modify existing ones; this will be our way of checking if our website is being or has been attacked. Check carefully that the attacker has not left any files on the server. Through the article presented by PrestaShop on this website security vulnerability, we highlight the following list of problematic files that a compromised online store may contain :- XsamXadoo_Bot.php
- XsamXadoo_deface.php
- 0x666.php
- f.php
- Xsam_Xadoo.html
Affected PrestaShop Modules
According to this article we mentioned earlier, there are several modules that are affected by this vulnerability:- 1-Click Update: Versions 4.0 beta and later
- Cart Abandonment Pro: Versions 2.0.1 ~ 2.0.2
- Faceted Search: Versions 2.2.1 ~ 3.0.0
- Merchant Experience: Versions 2.1.0 and later
- PrestaShop Checkout: versions 1.0.8 ~ 1.0.9