CSRF in WordPress
CVE-2019-9787
WordPress before 5.1.1 does not properly filter comment content, leading to Remote Code Execution by unauthenticated users in a default configuration. This occurs because CSRF protection is mishandled, and because Search Engine Optimization of A elements is performed incorrectly, leading to XSS. The XSS results in administrative access, which allows arbitrary changes to .php files. This is related to wp-admin/includes/ajax-actions.php and wp-includes/comment.php.
Vulnerability class: CSRF (Cross-Site Request Forgery)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.386, 98.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
6 public repositories with exploit or proof-of-concept code for this CVE:
- sijiahi/Wordpress_cve-2019-9787_defense (3 stars, last pushed 2021-06-21): This is a recurrence of cve-2019-9787 on Wordpress and a hash-based defense.
- rkatogit/cve-2019-9787_csrf_poc (2 stars, last pushed 2019-04-15)
- kuangting4231/mitigation-cve-2019-9787 (last pushed 2022-04-30)
- dexXxed/CVE-2019-9787 (last pushed 2021-06-29): Overview PoC of CSRF CVE-2019-9787 WordPress Version 5.1.1
- matinciel/Wordpress_CVE-2019-9787 (last pushed 2020-07-02): Try to reproduce this issue with Docker
- PalmTreeForest/CodePath_Week_7-8 (last pushed 2019-08-18): CodePath Assignment for Weeks 7 & 8: CVE-2017-14719, CVE-2019-9787 & Unauthenticated Page/Post Content Modification via REST API
Also mentioned in 17 other repositories (0xT11/CVE-POC, 20142995/nuclei-templates, Afetter618/WordPress-PenTest, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- blog.ripstech.com/2019/wordpress-csrf-to-rce/ (Exploit, Third Party Advisory)
- wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/ (Release Notes, Vendor Advisory)
- github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b (Patch, Third Party Advisory)
- wpvulndb.com/vulnerabilities/9230
- www.securityfocus.com/bid/107411 (Third Party Advisory, VDB Entry, vdb-entry)
- wordpress.org/support/wordpress-version/version-5-1-1/ (Release Notes, Vendor Advisory)
- [debian-lts-announce] 20190331 [SECURITY] [DLA 1742-1] wordpress security update (mailing-list)
- DSA-4677 (vendor-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.