CVE-2024-31211
MEDIUMWordPress 6.4.0-6.4.1 - Remote Code Execution via WP_HTML_Token Unserialization
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2024-31211. PoCs published by Abdurahmon3236.
AI-analyzed exploit summary This repository contains a functional Metasploit module that exploits a PHP unserialization vulnerability in WordPress via the `WP_HTML_Token` class, leading to remote code execution (RCE). The exploit crafts a serialized payload targeting the `__destruct()` magic method and sends it via a POST request to `wp-login.php`.
Description
WordPress is an open publishing platform for the Web. Unserialization of instances of the `WP_HTML_Token` class allows for code execution via its `__destruct()` magic method. This issue was fixed in WordPress 6.4.2 on December 6th, 2023. Versions prior to 6.4.0 are not affected.
Exploits (1)
This repository contains a functional Metasploit module that exploits a PHP unserialization vulnerability in WordPress via the `WP_HTML_Token` class, leading to remote code execution (RCE). The exploit crafts a serialized payload targeting the `__destruct()` magic method and sends it via a POST request to `wp-login.php`.
References (1)
Scores
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N