Affected versions
- Affected versions
- <3.7 || >=3.7 <=3.7.28 || >=3.8 <=3.8.28 || >=3.9 <=3.9.26 || >=4.0 <=4.0.25 || >=4.1 <=4.1.25 || >=4.2 <=4.2.22 || >=4.3 <=4.3.18 || >=4.4 <=4.4.17 || >=4.5 <=4.5.16 || >=4.6 <=4.6.13 || >=4.7 <=4.7.12 || >=4.8 <=4.8.8 || >=4.9 <=4.9.9 || >=5.0 <=5.0.3 || >=5.1 <=5.1
- Fixed version
- 3.7.29 · 3.8.29 · 3.9.27 · 4.0.26 · 4.1.26 · 4.2.23 · 4.3.19 · 4.4.18 · 4.5.17 · 4.6.14 · 4.7.13 · 4.8.9 · 4.9.10 · 5.0.4 · 5.1.1
Exploitation
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.
Links
Credits
- Simon Scannell

