Major security hole found in Prestashop

Last night, the PrestaShop’s official website, prestashop.com, was hacked, resulting in the misappropriation of a script intended for transcribing news information in the Back Office of PrestaShop stores.

The entire PrestaShop team dedicated ourselves to identifying and fixing this issue as quickly as possible. That fix has been completed.

Has my shop been infected?

This only affects PrestaShop versions 1.4/1.4.1/1.4.2/1.4.3/1.4.4, but not all shops using these versions are necessarily affected

If you use one of these versions, please check for any of the following symptoms:

  • A her.php file is at the root of /modules folder
  • A .php file different from index.php is in the upload and download folders
  • Your footer.tpl file has been modified
  • Your tools/smarty_v2 folder is missing

If you fulfill one of these conditions, your shop may have been infected. However, it is easy to fix just by following the instructions listed below.

As a preventive measure, we recommend you to apply this fix even if your shop has not been affected.

What should I do?

  1. Change your database password (or contact your webhost if you do not know how to do it). Once you have done that, open the settings.inc.php file in your /config folder and replace your old password with the new one. See below:
  2. Download the fix published by PrestaShop by clicking here
  3. Upload it to the root folder of your shop with your FTP client (Filezilla, Transmit…)
  4. Go to the url http://www.myshop.com/herfix.php
  5. The fix is now applied. Please do not forget to check if the herfix.php file previously uploaded at the root of your shop has been automatically deleted
  6. Rename the admin folder
  7. Change the password of all admins of your shop

The whole PrestaShop team wants to deeply thank the community for its help in identifying this issue.

If you want more information you can contact us