CVE-2022-0651 WP Statistics <= 13.1.5 Unauthenticated Blind SQL Injection via current_page_type
Unauthenticated attackers can inject SQL queries via the current_page_type parameter to obtain sensitive information from the database.
- 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-2022-0651?
CVE-2022-0651 is a critical SQL injection vulnerability in WP Statistics, published on 24 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The WP Statistics WordPress plugin is vulnerable to SQL Injection due to insufficient escaping and parameterization of the current_page_type parameter found in the ~/includes/class-wp-statistics-hits.php file which allows attackers without authentication to inject arbitrary SQL queries to obtain sensitive information, in versions up to and including 13.1.5.
Weakness: CWE-89
Which versions are affected by CVE-2022-0651?
It affects 1 product.
Products include Veronalabs Wp Statistics.
How do I fix CVE-2022-0651?
No fix has been published for CVE-2022-0651 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-2022-0651 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-0651 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in WP Statistics
- CVE-2022-38074 WordPress WP Statistics Plugin <= 13.2.10 is vulnerable to SQL Injection
- 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
- CVE-2017-18515 SQL injection in n/a
Sources
Also known as GHSA-hx7h-9675-wcgc.