Track The Click <= 0.3.11 - Authenticated (Author+) SQL Injection via 'stats' REST Endpoint

2023-09-26 00:00
Karolis Narvilas

Strategic Overview

Status
Patched in 0.3.12
Affected PluginTrack The Click
Affected Version<= 0.3.11
CVSS8.8High
CVECVE-2023-5041
View all Track The Click vulnerabilities

Vulnerability Overview

The Track The Click plugin for WordPress is vulnerable to time-based SQL Injection in versions up to, and including, 0.3.11 due to insufficient escaping on user supplied data submitted via the 'stats' REST endpoint and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with author-level permissions and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. NOTE: This issue was partially fixed in 0.3.11 and completely fixed in 0.3.12.

Technical Analysis

REMEDIATION: Update to version 0.3.12, or a newer patched version --- IDENTIFIER: CWE-89 (Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

External References

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C