CVE-2021-43789 Blind SQLi using Search filters in PrestaShop
Attackers can perform blind SQL injection via search filters to read sensitive database information in PrestaShop.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-43789?
CVE-2021-43789 is a high-severity SQL injection vulnerability in Prestashop Prestashop, published on 7 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
PrestaShop is an Open Source e-commerce web application. Versions of PrestaShop prior to 1.7.8.2 are vulnerable to blind SQL injection using search filters with `orderBy` and `sortOrder` parameters. The problem is fixed in version 1.7.8.2.
Weakness: CWE-89
Which versions are affected by CVE-2021-43789?
2 open source packages ship an affected version, including prestashop/prestashop. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
prestashop/prestashop Packagist | From 1.7.5.0 | 1.7.8.2 |
prestashop/prestashop Packagist | From 1.7.5.0 | 1.7.8.2 |
Products include Prestashop Prestashop.
How do I fix CVE-2021-43789?
Upgrade prestashop/prestashop to 1.7.8.2 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2021-43789 being exploited?
There is no known exploitation of CVE-2021-43789 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Prestashop Prestashop
Sources
Also known as GHSA-6xxj-gcjq-wgf4.