PrestaShop and security
Critical ps_facetedsearch vulnerability in PrestaShop: how to check for version 4.0.4
The vulnerability in the Faceted Search module affected versions 3.0.0 to 4.0.3 used in PrestaShop 1.7.1.0 and later. It could allow an unauthenticated attacker to execute code. Version 4.0.4 closes the hole described, but doesn’t confirm that a previously vulnerable store is clean.
Next step
First check the module version and secure a backup of the files, database and logs. Don’t delete suspicious elements blind, as that makes it harder to establish the entry route.
01
Which versions were vulnerable
The official PrestaShop project announcement names ps_facetedsearch from 3.0.0 to 4.0.3 inclusive, and stores from PrestaShop 1.7.1.0. The fix was released in 4.0.4. The store’s core version isn’t enough: modules can be updated independently, so check the version actually installed.
02
How to check the module version
In the admin panel, go to module management and find Faceted Search. Record the full number, the date and the source. If the panel is unavailable or you suspect a break-in, establish the version on a copy from the manifest files or module data, without running suspicious code on your own computer.
03
Why the hole was serious
The bug could lead to unauthenticated code execution, meaning action without a valid login to the admin panel. In practice this requires checking not just the module, but the whole installation: PHP files, the database, administrator accounts, tasks, configuration and server logs.
04
An update does not undo an earlier breach
Uploading 4.0.4 closes the described vulnerability, but doesn’t remove a webshell, a foreign account, a modified task or code added to the database earlier. If the module was vulnerable while the store was active, you need to separate two tasks: installing the fix and analysing a possible compromise.
05
What to secure before cleaning
Back up the files and database preserving modification times, and record the configuration and available web, PHP and admin panel logs. Don’t overwrite your only backup and don’t restore a random backup if the store was taking orders. You could lose data and keep the infection at the same time.
06
What a safe response looks like
We limit further damage, secure the state, update the vulnerable module, look for persistent access mechanisms and compare components with trusted sources. Then we rotate credentials through a secure channel, restrict permissions and watch the logs after launch.
07
When a broader update is needed
If the store runs on an old version of PrestaShop, PHP or many abandoned modules, fixing one component doesn’t end the risk. Once the incident is under control, prepare a separate plan for updating the whole stack with a backup, a test environment, checkout testing and the option to roll back.
Related materials and sources
Was the module vulnerable, or does the store show signs of a break-in?
Give the store address, the PrestaShop and ps_facetedsearch versions, when you noticed the symptoms and information about available backups. Don’t send passwords or customer data in the form.
Only 3 required fields · reply within 1 business day · no obligation
