WordPress through 4.9.6 allows Author users to execute arbitrary code by leveraging directory traversal in the…
No fixed version listed yet.Check the vendor advisory. References ↓
WordPress through 4.9.6 contains a directory traversal flaw in the wp-admin/post.php thumb parameter, which is passed to PHP's unlink function, due to missing filename validation in the wp_delete_attachment function in wp-includes/post.php. An attacker with Author-level (or higher) WordPress account access can exploit it to delete wp-config.php and then run a fresh installation to escalate privileges and execute arbitrary code.
Official description · CVE.org
WordPress through 4.9.6 allows Author users to execute arbitrary code by leveraging directory traversal in the wp-admin/post.php thumb parameter, which is passed to the PHP unlink function and can delete the wp-config.php file. This is related to missing filename validation in the wp-includes/post.php wp_delete_attachment function. The attacker must have capabilities for files and posts that are normally available only to the Author, Editor, and Administrator roles. The attack methodology is to delete wp-config.php and then launch a new installation process to increase the attacker's privileges.
- Exploited
- Not confirmed
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
Public exploit code (Metasploit) was available the same day.