CVE-2018-12895
HIGHWordPress <= 4.9.6 - Authenticated Arbitrary File Deletion via Post Thumbnail Parameter
Title source: llmExploitation Summary
EIP tracks 2 public exploits for CVE-2018-12895.
PoCs published by bloom-ux, Slavco Mihajloski, Karim El Ouerghemmi, Aloïs Thévenot, including Metasploit module auxiliary/scanner/http/wp_arbitrary_file_deletion.
AI-analyzed exploit summary This is a hotfix for CVE-2018-12895, a WordPress vulnerability that allows file deletion leading to code execution. The fix sanitizes the 'thumb' metadata field to prevent path traversal.
Description
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.
Exploits (2)
This is a hotfix for CVE-2018-12895, a WordPress vulnerability that allows file deletion leading to code execution. The fix sanitizes the 'thumb' metadata field to prevent path traversal.
This Metasploit module exploits an arbitrary file deletion vulnerability in WordPress (CVE-2018-12895) by leveraging author-level privileges to delete critical files like wp-config.php, potentially leading to site takeover.
References (6)
Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H