Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

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

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

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
bring-your-own-key-cve-2026-73678-unauthenticated-rce-in-mindsdb-cowork — 针对 CVE-2026-73678 的 PoC 漏洞利用:通过攻击者提供的 LLM 密钥及无沙箱的 scratchpad 执行,在 MindsDB Cowork 中实现未认证 RCE,以运行操作系统命令。 | Kitploit
工具/GitHubGitHub/hunt-benito/bring-your-own-key-cve-2026-73678-unauthenticated-rce-in-mindsdb-cowork
漏洞分析漏洞利用Web应用程序漏洞利用API安全测试渗透测试错误配置红队
GitHubhunt-benito/bring-your-own-key-cve-2026-73678-unauthenticated-rce-in-mindsdb-cowork

bring-your-own-key-cve-2026-73678-unauthenticated-rce-in-mindsdb-cowork

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

针对 CVE-2026-73678 的 PoC 漏洞利用:通过攻击者提供的 LLM 密钥及无沙箱的 scratchpad 执行,在 MindsDB Cowork 中实现未认证 RCE,以运行操作系统命令。

查看仓库
5天前尚未审核

CVE-2026-73678 —— MindsDB Minds Platform / MindsHub Cowork 中的未认证远程代码执行(RCE)

CVE-2026-73678 的 PoC(CVSS 3.1 10.0 严重,AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H)。 完整分析文章:www.hunt-benito.com/blog/bring-your-own-key-cve-2026-73678-unauthenticated-rce-in-mindsdb-cowork/

Cowork 的 cowork-server FastAPI sidecar 暴露了 /api/v1/ 接口,无需任何认证 (CWE-306),CORS 配置为 allow_origins=["*"](CWE-942),并且 Anton 代理的 scratchpad 工具会通过无沙箱的裸 exec() 直接执行 LLM 生成的 Python 代码(CWE-94)。

攻击链:通过 PUT /api/v1/settings/* 植入攻击者自己的 LLM 密钥 → 使用精心构造的提示词向 POST /api/v1/responses/ 发起请求,让代理在 scratchpad 上执行攻击者代码 → 以运行该应用的用户身份执行任意操作系统命令。

改编自 MindsDB 安全公告 GHSA-jcxw-h8ph-pxpv 中的 PoC(致谢:Ho Viet Khanh / HK4zCzi)。

环境要求

  • Python 3.9+(仅需标准库——无需 pip 安装)
  • 一个正在运行的 Minds Platform / MindsHub Cowork 实例(默认 127.0.0.1:26866)
  • 任意一个属于攻击者的 OpenAI 或 Gemini 兼容 API 密钥——完全不需要受害者端的任何东西

使用方法

root@kitploit:~
# against a local dev instance (make dev-web)
python3 shell.py AIzaSy... gemini

# explicit target + model
API=http://127.0.0.1:26866/api/v1 python3 shell.py sk-... openai gpt-4o-mini
root@kitploit:~
[*] Setting provider=gemini model=gemini-2.5-flash
[*] validate: {"status": "ok", "configReady": true, ...}

=======================================================
  RCE SHELL  (type shell commands, 'exit' to quit)
=======================================================
$ id
uid=1000(victim) gid=1000(victim) groups=1000(victim),27(sudo)

为什么 nonce 能证明代码确实执行

生成的代码片段会在受害者进程内部计算 os.urandom(4).hex(), 并将其写入 /tmp/RCE_PROOF.txt。提示词告诉模型:如果不实际执行代码, 它就不可能知道这个 nonce。如果返回的文本中包含与磁盘上文件一致的 nonce, 就证明代码确实执行了——产生幻觉的模型不可能凭空生成它。

缓解措施(如果你运行该应用)

root@kitploit:~
export COWORK_REQUIRE_AUTH=true          # auth exists but defaults OFF
export COWORK_AUTH_TOKEN="<long-random>" # or let it auto-generate
export COWORK_ALLOWED_ORIGINS='["http://localhost:26866"]'
# never set COWORK_SERVER_HOST beyond 127.0.0.1; rotate all secrets reachable
# by the account that ran the app

目前没有附带补丁的发布标签(release tag);修复仅存在于 cowork-server/anton 的 main 分支上。

法律声明

仅限经授权的安全测试与研究使用。请勿对你不拥有或未经明确许可测试的系统 运行本工具。

参考链接

  • GHSA-jcxw-h8ph-pxpv:https://github.com/mindsdb/mindshub/security/advisories/GHSA-jcxw-h8ph-pxpv
  • NVD CVE-2026-73678:https://nvd.nist.gov/vuln/detail/CVE-2026-73678
  • VulnCheck 公告:https://www.vulncheck.com/advisories/mindsdb-minds-platform-unauthenticated-rce-via-scratchpad-exec
下载工具