PrestaShop publishes official security advisories, and updates are usually primarily targeted at the latest supported version. In 2026, the project repository published, among other things, a critical advisory concerning stored XSS. For an older store, this means one thing: security must be a process, not a one-time plugin.

Short answerThe most important protection layers are an up-to-date core and modules, a restricted administration panel, correct permissions, off-server copies, monitoring of file changes and logs, and a ready restoration procedure.

7 layers of PrestaShop store security

  1. An up-to-date and supported core.
  2. Up-to-date, trusted modules and theme.
  3. Secured administrator accounts.
  4. Correct file permissions and no unnecessary write access.
  5. Off-server backups and a restoration test.
  6. HTTP/WAF layer protection and correct hosting configuration.
  7. Monitoring of logs, file changes and unusual events.

Core, modules and PHP: the first line of defence

The PrestaShop project's security policy indicates that security fixes are generally targeted at the latest release. An older store may therefore remain on a version for which some issues will not be fixed in the same way as in the current branch.

  • Check the PrestaShop, PHP, library and server versions.
  • Remove unused modules instead of merely disabling them.
  • Verify the module source and update history.
  • Do not install nulled modules or themes.
  • Test updates on a copy of the store, especially with ERP integrations, payments and couriers.

Administration panel and user accounts

  • Each person should have their own account - without a shared "admin" login.
  • Enable MFA if the panel/module used or SSO layer allows it.
  • Remove the accounts of former employees and external companies.
  • Limit roles to the necessary minimum.
  • Do not expose additional diagnostic panels publicly.
  • Monitor logins from new locations and unusual authentication attempts.
Changing the panel address is not a firewall

An unusual URL can limit some automated attempts, but it does not replace updates, access control and monitoring.

File permissions and integrity

After an infection, I often find the problem not only in one file, but in a mechanism that lets an attacker return: a web shell, modified module, cron, administrator account or permissions that are too broad.

  • Compare core and module files against trusted packages.
  • Look for recently changed PHP files in unusual directories.
  • Check the uploads/img directory for executable code.
  • Verify system and application crons.
  • Review .htaccess, server configuration and PHP startup files.
  • After remediation, change all keys, passwords and access credentials that may have been exposed.

Backup: a copy must allow real store restoration

ElementMinimumWhy
DatabaseFrequent copies + retention.Orders and customers change continuously.
FilesCore, modules, theme, images and configuration.The database alone will not restore the store.
LocationA copy outside the production server.An attack or server failure does not destroy the backup.
Restore testRegular restoration in a test environment.You know that the copy is complete.

WAF, hosting and server logs

The WAF layer can limit some known attack and bot patterns, but it will not fix a vulnerable module. Hosting should provide access to HTTP/PHP logs and up-to-date environment versions.

  • Enable HTTPS and HSTS after verifying the configuration.
  • Limit unnecessary methods and headers if the application does not use them.
  • Set upload and execution limits where possible.
  • Analyse 404/500 spikes, unusual POST requests and attempts to access the panel.
  • Separate the test environment from production and do not expose a database copy publicly.

Monitoring: detect a change before the customer notices it

  • Availability and HTTP response monitoring.
  • Alerts about changes to key files.
  • Checking new administrator accounts.
  • Monitoring PHP errors and application exceptions.
  • Checking the SSL certificate and disk space.
  • Periodic external scans and manual log review.

What should you do when the store is already infected?

  1. Restrict access and preserve an evidence copy before cleaning.
  2. Determine the approximate start time of the infection.
  3. Check files, database, logs, accounts and crons.
  4. Identify the entry vector instead of only removing visible malware.
  5. Clean or restore from a known good copy.
  6. Update vulnerable components.
  7. Change credentials and keys.
  8. Check checkout, payments, emails and SEO after remediation.
  9. Monitor the store over the following days for changes reappearing.
Do not restore blindly

A backup from a week ago may also contain malware. First establish the infection time window and check the copy.

Frequently asked questions

Is antivirus on hosting enough?

No. It can help detect some malicious files, but security also depends on updates, accounts, modules, configuration and monitoring.

Does changing the admin directory name secure the store?

It is a small layer that makes automated attempts harder, but it does not protect against a vulnerable module or a compromised account.

How often should you back up a store?

It depends on the number of orders. The database of a high-traffic store may need copies several times a day, and files less often.

Do all passwords have to be changed after an infection?

You should assume that access credentials may have been exposed and change passwords and keys that an attacker could have used.

Sources and documentation

Sources were checked on 28 August 2026. Official materials and primary documentation take priority.

Update history

- guide published; sources, internal linking and structured data verified.

Do you need an assessment of your own situation?

We can start with diagnosis and priorities instead of a random package of actions.

Diagnosis and action plan
Canonical article URLhttps://pawlinaltd.pl/en/insights/prestashop-security/