CVE-2021-24340 WP Statistics < 13.0.8 - Unauthenticated SQL Injection
Unauthenticated attackers can perform SQL injection via improper query preparation in the WP Statistics plugin, allowing unauthorized data access or modification.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-24340?
CVE-2021-24340 is a high-severity SQL injection vulnerability in VeronaLabs WP Statistics, published on 7 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The WP Statistics WordPress plugin before 13.0.8 relied on using the WordPress esc_sql() function on a field not delimited by quotes and did not first prepare the query. Additionally, the page, which should have been accessible to administrator only, was also available to any visitor, including unauthenticated ones.
Weakness: CWE-89
Which versions are affected by CVE-2021-24340?
It affects 1 product.
Products include Veronalabs Wp Statistics.
How do I fix CVE-2021-24340?
No fix has been published for CVE-2021-24340 yet. Limit exposure of the affected software until one is available.
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-24340 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-24340 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in VeronaLabs WP Statistics
- CVE-2022-38074 WordPress WP Statistics Plugin <= 13.2.10 is vulnerable to SQL Injection
- CVE-2022-0651 WP Statistics <= 13.1.5 Unauthenticated Blind SQL Injection via current_page_type
- CVE-2022-25148 WP Statistics <= 13.1.5 Unauthenticated Blind SQL Injection via current_page_id
- CVE-2022-25149 WP Statistics <= 13.1.5 Unauthenticated Blind SQL Injection via IP
- CVE-2022-0513 WP Statistics <= 13.1.4 Unauthenticated Blind SQL Injection via exclusion_reason
Sources
Also known as GHSA-9mj4-xv45-qwq2.