WordPress security changelog
HIGH CVE-2021-24295 Modified

Spam protection, AntiSpam, FireWall by CleanTalk: SQL injection

Spam protection, AntiSpam, FireWall by CleanTalk is affected by SQL injection. The vulnerable path is reachable without authentication. A successful request can alter database queries and expose or modify WordPress data.

CVE / CNA score 7.5 CVSS · contact@wpscan.com
NVD score 7.5 CVSS 3.1 · nvd@nist.gov
Component
Spam protection, AntiSpam, FireWall by CleanTalk
Plugin slug
spam-protection,-antispam,-firewall
Affected
See vendor advisory
Safe version
See mitigation notes
Published
May 17, 2021
Weakness
CWE-89 — Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

This CVE was published May 17, 2021 and is one of 2 known issues for this plugin.

Update, patch or deactivate.

Update Spam protection, AntiSpam, FireWall by CleanTalk to a release outside the affected range, or disable and remove it until a fixed version is available.

No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical description

It was possible to exploit an Unauthenticated Time-Based Blind SQL Injection vulnerability in the Spam protection, AntiSpam, FireWall by CleanTalk WordPress Plugin before 5.153.4. The update_log function in lib/Cleantalk/ApbctWP/Firewall/SFW.php included a vulnerable query that could be injected via the User-Agent Header by manipulating the cookies set by the Spam protection, AntiSpam, FireWall by CleanTalk WordPress plugin before 5.153.4, sending an initial request to obtain a ct_sfw_pass_key cookie and then manually setting a separate ct_sfw_passed cookie and disallowing it from being reset.

NVD vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Primary and upstream sources