| Title | Spam protection, AntiSpam, FireWall by CleanTalk < 5.153.4 - Unauthenticated Blind SQL Injection |
|---|---|
| Author | DhiyaneshDK |
| Severity | High |
| 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 |
| CVSS Score | 7.5 |
| EPSS Score | 0.26068 |
| CVE ID | CVE-2021-24295 |
| CWE ID | CWE-89 |
| Fofa Query | body="/plugin/cleantalk-spam-protect/" |
| Tags | cve cve2024 wpscan wordpress wp wp-plugin cleantalk-spam-protect sqli passive vkev vuln |
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.
GET /wp-content/plugins/cleantalk-spam-protect/readme.txt HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24295.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24295.pcap
N/AN/A