SQL Injection in City Autocomplete module for PrestaShop
A SQL injection vulnerability exists in the City Autocomplete (cityautocomplete) module from ebewe.net for PrestaShop. Versions prior to 1.8.12 (for PrestaShop 1.5/1.6) and prior to 2.0.3 (for PrestaShop 1.7) are affected. The vulnerability is present in the autocompletion.php front controller, where the type, input_name, or q parameters are not properly sanitized, allowing remote attackers to inject and execute arbitrary SQL commands.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary SQL commands on the underlying database. This can lead to data leakage, data modification, or complete compromise of the PrestaShop instance, including potential access to sensitive customer and payment information.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict access to the autocompletion.php front controller, implement web application firewall (WAF) rules to block malicious input, and monitor for suspicious database activity until the patch can be applied.
Patch, then assume compromise.
Upgrade the City Autocomplete module to version 1.8.12 or later (for PrestaShop 1.5/1.6) or version 2.0.3 or later (for PrestaShop 1.7). Ensure all input parameters are properly sanitized and use parameterized queries to prevent SQL injection.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.