CVE-2022-0651CWE-89

WP Statistics <= 13.1.5 Unauthenticated Blind SQL Injection via current_page_type

Critical · published February 24, 2022

CVSS v3.1
9.8
EPSS
32%
Percentile
98.3
In the wild
Unconfirmed
What it is

🔥 An SQL injection vulnerability in the WP Statistics WordPress plugin could let attackers slip in without authentication – think of it as giving someone a key to every drawer in your office! Imagine a restaurant where the chef blindly follows any order without checking the ingredients. If a customer requests something unusual, like a dish made entirely of chocolate fish, the kitchen delivers it—no questions asked! That's exactly how this SQL injection works, allowing attackers to run arbitrary SQL queries without breaking a sweat. An attacker could exploit this vulnerability to access sensitive data stored in your database, potentially exposing user information or even deleting crucial records. The consequences could be absolutely devastating for your site’s reputation and user trust. You definitely don’t want to be the restaurant that serves chocolate fish to unsuspecting guests!

Put simply

Imagine a restaurant where the chef blindly follows any order without checking the ingredients. If a customer requests something unusual, like a dish made entirely of chocolate fish, the kitchen delivers it—no questions asked! That's exactly how this SQL injection works, allowing attackers to run arbitrary SQL queries without breaking a sweat. This vulnerability arises from insufficient escaping and parameterization of the 'current_page_type' parameter in the WP Statistics plugin, located in class-wp-statistics-hits.php. Attackers can craft malicious SQL queries to manipulate the database directly, bypassing authentication entirely.

What to do

An attacker could exploit this vulnerability to access sensitive data stored in your database, potentially exposing user information or even deleting crucial records. The consequences could be absolutely devastating for your site’s reputation and user trust. You definitely don’t want to be the restaurant that serves chocolate fish to unsuspecting guests! To protect your site, immediately update the WP Statistics plugin to version 13.1.6 or later. Additionally, review your SQL query practices, ensuring that all user inputs are properly sanitized to prevent similar issues in the future. You’ve got this! Stay vigilant and keep your plugins updated – your security hero status is activated! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.32212 · 98.3th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2022-02-24T18:27Z
EPSS history
Timeline
  • 24 FEB 18:27Z
    WP Statistics <= 13.1.5 Unauthenticated Blind SQL Injection via current_page_type
    cvelistv5