Code Injection in PrestaShop - CVE-2018-20717

 

Code Injection in PrestaShop - CVE-2018-20717

Published: January 15, 2019 / Updated: July 17, 2020


Vulnerability identifier: #VU31167
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2018-20717
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: PrestaShop SA
Affected software:
PrestaShop

Detailed vulnerability description

The vulnerability allows a remote authenticated user to execute arbitrary code.

In the orders section of PrestaShop before 1.7.2.5, an attack is possible after gaining access to a target store with a user role with the rights of at least a Salesman or higher privileges. The attacker can then inject arbitrary PHP objects into the process and abuse an object chain in order to gain Remote Code Execution. This occurs because protection against serialized objects looks for a 0: followed by an integer, but does not consider 0:+ followed by an integer.


How to mitigate CVE-2018-20717

Install update from vendor's website.

Sources