In the module “Module One Page Checkout, Social Login & Mailchimp” (supercheckout) up to version 6.0.6 from KnowBand for PrestaShop, a guest can upload dangerous files with extensions .php.

Summary

  • CVE ID: [CVE-2023-45384]
  • Published at: 2023-10-17
  • Platform: PrestaShop
  • Product: supercheckout
  • Impacted release: <= 6.0.6 (6.0.7 fixed the vulnerability)
  • Product author: KnowBand
  • Weakness: CWE-434
  • Severity: critical (10)

Description

The method SupercheckoutSupercheckoutModuleFrontController::saveFileTypeCustomField() allow upload of .php files, which will lead to a critical vulnerability CWE-94.

This exploit is actively exploited in the wild

This exploit uses a PrestaShop front controller and most attackers can conceal the module controller’s path during the exploit, so you will never know within your conventional frontend logs that it exploits this vulnerability. You will only see “POST /” inside your conventional frontend logs. Activating the AuditEngine of mod_security (or similar) is the only way to get data to confirm this exploit.

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:C/C:H/I:H/A:H

Possible malicious usage

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

Other recommendations

  • It’s recommended to upgrade to the latest version of the module supercheckout.
  • 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.

Timeline

Date Action
2023-05-25 Issue discovered during a code review by TouchWeb.fr
2023-05-25 Contact PrestaShop Addons security Team to confirm version scope
2023-05-25 PrestaShop Addons security Team confirm version scope
2023-06-06 Request a CVE ID
2023-10-11 Received CVE ID
2023-10-17 Publish this security advisory