Record summary

CVE-2021-24295 has a selected CVSS score of 7.5 (high); EIP currently links 1 Nuclei template.

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.

Description source: CVE List

Exploitation context

Known exploitation

VulnCheck KEV
Listed · May 3, 2021 · VulnCheck
Reported exploitation
Observed · VulnCheck

Available material

Nuclei templates
1

Affected products and versions

2
ProductSourceVersion rangeStatus
VulnCheckVersion data not supplied

Spam protection, AntiSpam, FireWall by CleanTalk

Browse СleanTalk / Spam protection, AntiSpam, FireWall by CleanTalk
CVE List5.153.4 to < 5.153.4affected

Nuclei templates

1
ProjectDiscoveryHIGHSpam protection, AntiSpam, FireWall by CleanTalk < 5.153.4 - Unauthenticated Blind SQL InjectionCVSS 7.5

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.

Impact

Unauthenticated attackers can extract database contents via time-based blind SQL injection through User-Agent header manipulation, potentially exposing all WordPress user data.

Remediation

Fixed in 5.153.4

WeaknessesCWE-89
AuthorsDhiyaneshDK
Template tagscvecve2021wpscanwordpresswpwp-plugincleantalk-spam-protectsqlipassivevkevvuln
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CPE: cpe:2.3:a:cleantalk:spam_protection\,_antispam\,_firewall:*:*:*:*:*:wordpress:*:*
FOFA: body="/plugin/cleantalk-spam-protect/"

Source: ProjectDiscovery

References

3