#VU65762 Code Injection in PrestaShop


Published: 2022-07-25 | Updated: 2022-07-26

Vulnerability identifier: #VU65762

Vulnerability risk: High

CVSSv3.1: 7.1 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N/E:H/RL:O/RC:C]

CVE-ID: CVE-2022-36408

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
PrestaShop
Web applications / E-Commerce systems

Vendor: PrestaShop SA

Description

The vulnerability allows a remote attacker to execute arbitrary PHP code on the target system.

The vulnerability exists due to insecure eval() call when processing cache entries in MySQL Smarty cache feature. A remote attacker can inject specially crafted entries into the database and execute arbitrary PHP code on the system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system but requires the ability to inject specially crafted entries into the database, for instance in case of a SQL injection vulnerability, such vulnerability in Wishlist modules described as SB2022072609.

Note, the vulnerability is being actively exploited in the wild.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

PrestaShop: 1.6.0.10 - 1.7.8.6


External links
http://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-hrgx-p36p-89q4/
http://build.prestashop.com/news/major-security-vulnerability-on-prestashop-websites/


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

Yes. This vulnerability is being exploited in the wild.


Latest bulletins with this vulnerability