07/01/2020

Security announcement: your store may be vulnerable to malware. Here is what you need to do

updated on 09/01/2020, 10 h 20

Dear PrestaShop user,

On January 2nd, a malware named XsamXadoo Bot was discovered.This malware can be used to have access to an online store and take control of it.

We now believe that the bot used a known vulnerability of the PHP tool PHPUnit that has been reported as CVE-2017-9841.

Here is what you need to do, it should take only 5 minutes.

Is my website vulnerable?

To know if your store is vulnerable to an attack, this is what you should do. If you’re uncomfortable managing files on your server, contact your qualified team member:

  1. On your server, look into the Vendor folder at the root level of your PrestaShop website
  2. If the Vendor folder contains a “phpunit” folder, you may be vulnerable to an outside attacker.
  3. You can now simply delete the “phpunit” folder and its content.

Once you checked the main PrestaShop folder, repeat the same steps but inside each module folder:

  1. In each module folder, check if there is a Vendor folder
  2. Inside the Vendor folder of each module, check if there is a folder named “phpunit”.
  3. If one module folder contains this “phpunit” folder, this module may make you vulnerable to an outside attacker.
  4. You can simply delete the “phpunit” folder.

Double check if every module Vendor folder does not contain a “phpunit folder.” You should not delete anything else.

It will not affect module behavior. This simple step will protect your online store from this vulnerability, but remember that your website may have already been compromised.

→ If you did not find any module containing this phpunit folder, your store is not vulnerable.

For more technically detailed instructions, please visit our dedicated post.

What can happen if my store is compromised?

This vulnerability gives an attacker access to your website: for instance, this means an attacker can potentially steal your data.

For more information, please visit our dedicated post on this matter.

What is PrestaShop doing right now about this vulnerability?

All PrestaShop agency partners and ambassadors have been informed and should have already secured the shops they have control over. 

All the PrestaShop modules have been updated and are now safe. We are also currently checking every other module available on PrestaShop Addons, to see if they contain the “phpunit” vulnerable folder.

If you believe your website has already been compromised, we strongly advise you to contact a security expert.

The security of online stores is at the center of PrestaShop’s concerns. Our teams are making sure the impact of this malware will be as small as possible. We will of course keep you updated regularly on this matter.

Every 2 weeks, get the best ecommerce tips and latest trends in your inbox.

By submitting this form, I agree to the data entered being used by PrestaShop S.A for sending newsletters and promotional offers. You can unsubscribe at any time by using the link in the emails sent to you. Learn more about managing your data and rights.