Unauthenticated SQL Injection in WP Fastest Cache <1.2.2
A critical unauthenticated SQL injection vulnerability exists in the WP Fastest Cache WordPress plugin prior to version 1.2.2. The vulnerability arises from improper sanitization and escaping of the $username variable in the is_user_admin function of the WpFastestCacheCreateCache class. This variable, extracted from cookies, is used directly in an SQL query before input sanitization occurs, allowing attackers to inject arbitrary SQL. The flaw is exploitable via time-based blind SQL injection techniques, enabling attackers to read the full contents of the WordPress database without authentication.
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 unauthenticated attackers to extract the entire contents of the WordPress database using time-based blind SQL injection. This can lead to exposure of sensitive information, including user credentials, configuration data, and potentially compromise the entire WordPress installation. The attack does not require authentication, significantly increasing the risk and attack surface.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, disable or remove the WP Fastest Cache plugin until it can be updated. Restrict access to the WordPress site where feasible, and monitor for suspicious activity. Employ a web application firewall (WAF) with SQL injection detection capabilities as an additional layer of defense.
Patch, then assume compromise.
Upgrade WP Fastest Cache to version 1.2.2 or later, which addresses the vulnerability by properly sanitizing and escaping user-supplied input before it is used in SQL queries.
2 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.