CVE-2022-31181
Remote code execution in prestashop
Record summary
CVE-2022-31181 has a selected CVSS score of 9.8 (critical); EIP currently links 1 repository PoC and 1 Nuclei template.
Description
PrestaShop is an Open Source e-commerce platform. In versions from 1.6.0.10 and before 1.7.8.7 PrestaShop is subject to an SQL injection vulnerability which can be chained to call PHP's Eval function on attacker input. The problem is fixed in version 1.7.8.7. Users are advised to upgrade. Users unable to upgrade may delete the MySQL Smarty cache feature.
Exploitation context
Affected products and versions
2| Product | Source | Version range | Status |
|---|---|---|---|
PrestaShopBrowse PrestaShop / PrestaShop | CVE List, VulnCheck | >= 1.6.0.10, < 1.7.8.7 | affected |
prestashop/prestashopBrowse Packagist / prestashop/prestashop | GitHub Advisory | 1.6.0.10 to < 1.7.8.7 · Fixed in 1.7.8.7 | affected |
Proofs of concept
1Repository PoCs
GitHubdrkbcn/lblfixer_cve_2022_31181Repository PoCby drkbcnStars: 0Not analyzed99 files
Nuclei templates
1ProjectDiscoveryCRITICALPrestaShop - SQL Injection to Eval InjectionCVSS 9.8
PrestaShop versions from 1.6.0.10 and before 1.7.8.7 contain an SQL injection caused by unsanitized user input, letting attackers chain the vulnerability to call PHP's Eval function, exploit requires attacker to send malicious input.
Impact
Attackers can execute arbitrary PHP code, leading to remote code execution and full system compromise
Remediation
Upgrade to version 1.7.8.7 or later. Alternatively, delete the MySQL Smarty cache feature if upgrade is not possible.
Source: ProjectDiscovery