RULE(RULE ID:338368)

Rule General Information
Release Date: 2024-08-28
Rule Name: WordPress Cross Site Request Forgery Remote Code Execution Vulnerability (CVE-2019-9787)
Severity:
CVE ID:
Rule Protection Details
Description: 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.
Impact: An attacker can execute arbitrary code via a successful exploit in the context of the vulnerable software.
Affected OS: Windows, Linux, Others
Reference: SecurityFocusBID:107411
https://blog.ripstech.com/2019/wordpress-csrf-to-rce/
https://github.com/WordPress/WordPress/commit/0292de60ec78c5a44956765189403654fe4d080b
https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html
Solutions
Refer to the announcement or patch by the vendor: https://wordpress.org/news/2019/03/wordpress-5-1-1-security-and-maintenance-release/