prestashop/prestashop
Affected
- introduced
1.6.0.10, fixed1.7.8.7(ecosystem)
Fixed versions
1.7.8.7
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2022-31181
PrestaShop eval injection possible if shop vulnerable to SQL injection
Impact
Eval injection possible if the shop is vulnerable to an SQL injection.
Patches
The problem is fixed in version 1.7.8.7
Workarounds
Delete the MySQL Smarty cache feature by removing these lines in the file config/smarty.config.inc.php lines 43-46 (PrestaShop 1.7) or 40-43 (PrestaShop 1.6):
if (Configuration::get('PS_SMARTY_CACHING_TYPE') == 'mysql') {
include _PS_CLASS_DIR_.'Smarty/SmartyCacheResourceMysql.php';
$smarty->caching_type = 'mysql';
}Critical Basis: The source's own band: CRITICAL
1.6.0.10, fixed 1.7.8.7 (ecosystem)1.7.8.7
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0