[CVE-2024-24302] Deserialization of Untrusted Data in Tunis Soft – Product Designer module for PrestaShop

PrestaShop Security Advisory

In the module “Product Designer” (productdesigner) up to version 1.178.36 from Tunis Soft for PrestaShop, a guest can execute a remote code via un untrusted data deserialized.

Summary

  • CVE ID: CVE-2024-24302
  • Published at: 2024-02-29
  • Platform: PrestaShop
  • Product: productdesigner
  • Impacted release: < 1.178.36 (1.178.36 fixed the vulnerability)
  • Product author: Tunis Soft
  • Weakness: CWE-918
  • Severity: critical (10)

Description

Prior to PHP 8.0, a deserialization of untrusted data exploiting phar wrapper, in the method ProductDesignerPixabayModuleFrontController::postProcess() can be used with a trivial http call and exploited to execute a remote code.

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
  • Steal/Remove data from the associated PrestaShop

Other recommendations

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

Timeline

DateAction
2023-10-24Issue discovered during a code review by TouchWeb.fr
2023-10-24Contact PrestaShop Addons security Team to confirm version scope by author
2023-10-25PrestaShop Addons security Team confirms version scope
2023-11-07Author provide a patch
2024-02-05Received CVE ID
2024-02-29Publish this security advisory

Tunis Soft thanks TouchWeb for its courtesy and its help after the vulnerability disclosure.

READ MORE

Leave a Reply

Your email address will not be published. Required fields are marked *