Patchfirst
CVE-2018-12895 Public exploit EPSS 62.2%

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 ↓

Summary

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.

Breakdown
24.8 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Public exploit code (Metasploit) was available the same day.

  1. DisclosedPublic exploit codeMetasploitday 0
↑ ↓ chooseEnter openEsc close