Nxploited/CVE-2026-10818
GitHub: Nxploited/CVE-2026-10818
针对 WPForms Pro 分块上传顺序缺陷(CVE-2026-10818)的无身份验证远程代码执行利用与批量验证工具。
Stars: 0 | Forks: 0
# CVE-2026-10818
WPForms Pro <= 1.10.1.1 - 通过分块上传初始化/完成顺序实现的无身份验证任意文件写入
` 文件名模式
- **执行验证** — 通过检查响应正文中是否存在唯一特征来确认实际的 PHP 执行,过滤掉静态文件服务和源代码泄露
- **PATH_INFO 探测** — 尝试服务器处理程序绕过 (`.chunk/x.php`, `/.php`) 以在非 PHP 扩展名上触发 PHP 执行
- **多语言 Payload** — 生成在 IEND 块之后嵌入了 PHP 的有效 PNG 图像
- **专业输出** — 带有每个目标状态跟踪的实时彩色终端显示
## 环境要求
```
Python >= 3.8
```
```
pip install requests urllib3 beautifulsoup4
```
## 使用方法
```
python CVE-2026-10818.py
```
系统将提示您输入:
| 提示 | 描述 | 默认值 |
|---|---|---|
| **Targets file** | 包含每行一个目标的文本文件路径 | `list.txt` |
| **Threads** | 并发工作线程数 (1–20) | `5` |
### 目标文件格式
```
https://example.com
http://target.org
subdomain.example.net
192.168.1.100
https://example.com/wordpress
```
每行一个 URL。支持 `http://`、`https://`、纯域名、IP 以及子目录安装。
## 输出
### 终端
```
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃
┃ ██▄ ██ ██ ██ ┃
┃ ████ ██ ████ ┃
┃ ██ ██ ██ ██ ┃
┃ ██ ████ ████ ┃
┃ ██ ███ ██ ██ ┃
┃ ┃
┃ Nxploited ━ Khaled Alenazi ━ T.m @Kxploit ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ CVE-2026-10818 WPForms Pro ≤ 1.10.1.1 ┃
┃ Chunked Upload → Predictable Path → RCE ┃
┃ Results ━▸ Nx_hit/ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
```
在扫描过程中,每个目标都会经历以下标记阶段:
```
02:14:52 ◆ target.com VER WPForms 1.9.3.1 vulnerable
02:14:53 ◆ target.com FORM 1 upload form(s) on /contact
02:14:53 ◆ target.com UPLOAD 6 safe + 5 exec payloads
02:14:55 ◆ target.com FIN poly_png → a8f3...1b22.png URL returned
02:14:57 ◆ target.com DIR listing enabled, 4 file(s) before exec upload
02:14:59 ◐ target.com EXEC shell_php → finalized on disk (hash unknown)
02:15:01 ◆ target.com DIR 1 NEW exec file(s) after upload!
● target.com SHELL dir-new:7c4f...e8a1.php https://target.com/wp-content/uploads/wpforms/tmp/7c4f...e8a1.php
```
### 结果文件
所有结果都保存在 `Nx_hit/` 目录中:
| 文件 | 内容 |
|---|---|
| `Nx_shell.txt` | 已确认的 RCE — URL、标签和响应正文预览 |
| `Nx_vuln.txt` | 已确认的任意文件写入,但未验证执行 |
### 总结
```
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ COMPLETE 150 targets processed ┃
┃ ┃
┃ ● 3 shell ◐ 12 vuln ○ 85 skip ✗ 50 miss ┃
┃ ┃
┃ Results ━▸ Nx_hit/ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
```
| 符号 | 含义 |
|---|---|
| `●` shell | 已在远程目标上确认 PHP 执行 |
| `◐` vuln | 文件已写入磁盘,但未确认执行 |
| `○` skip | 目标无法访问、已修补或未找到上传表单 |
| `✗` miss | 上传尝试失败 |
## 扫描流水线
```
Target
│
├─ Reachability (HTTPS → HTTP fallback)
├─ WPForms Version Detection
├─ Form Discovery (100+ page paths + sitemap crawl)
├─ AJAX Route Validation
│
├─ Phase 1: Safe Uploads (png/jpg/pdf + finalize → URL)
│ └─ Shell verification on returned URLs
│
├─ Phase 2: Directory Snapshot (BEFORE)
│
├─ Phase 3: Exec Uploads (php/phtml/php5/phar/shtml + finalize)
│ ├─ Leaked filename extraction from response
│ └─ Hash pattern extraction from body + headers
│
├─ Phase 4: Directory Snapshot (AFTER) → Diff → New exec files
│ └─ Shell verification on each new file
│
├─ Phase 5: Hash Leak Verification
│ └─ Build URLs from leaked hashes → Shell check
│
├─ Phase 6: Chunk-Only Uploads (no finalize → predictable SHA1 path)
│ └─ Direct access + PATH_INFO bypass probing
│
└─ Result Classification (shell / vuln / skip / miss)
```
## 免责声明
本工具**仅供授权的安全测试和教育研究目的使用**。请仅在你拥有或获得明确书面许可的系统上使用。
未经授权访问计算机系统是违法行为。对于因使用本软件而造成的任何滥用、损害或法律后果,作者**不承担任何责任**。
使用此工具即表示你同意对自己的行为负全部责任,并将遵守所有适用的法律法规。
CVE-2026-10818
WPForms Pro ≤ 1.10.1.1 — 通过分块上传实现的无身份验证任意文件写入
概念验证漏洞利用
分块上传初始化/完成顺序 → 可预测路径暴露 → 远程代码执行
作者:Nxploited
Khaled Alenazi
T.m @Kxploit
标签:CISA项目, PoC, Python, WordPress, WPForms插件, 任意文件上传, 无后门, 暴力破解, 编程工具, 远程代码执行, 逆向工具