
CVE-2022-36804에 대한 다소 신뢰할 수 있는 PoC Exploit (BitBucket Critical Command Injection)
CVE-2022-36804에 대한 다소 신뢰할 수 있는 PoC 익스플로잇입니다(BitBucket 중요 명령어 주입). 이 공격은 일반적으로 공개 리포지토리가 활성화되어 있어야 하지만, 세션 쿠키도 이 익스플로잇과 호환됩니다. 참고: 이 익스플로잇은 자동 리포지토리 검색 기능을 포함하고 있어 직접 공개 리포지토리를 수동으로 찾을 필요가 없어 편리합니다.
git clone https://github.com/BenHays142/CVE-2022-36804-PoC-Exploit.git;
cd CVE-2022-36804-PoC-Exploit
python3 -m pip install -r requirements.txt
python3 main.py [target]
usage: main.py [-h] [--project PROJECT] [--repo REPO] [--skip-auto] [--session SESSION] [--command CMD] server
Exploit BitBucket Instances (< v8.3.1) using CVE-2022-36804. Exploits automagically without any extra parameters, but allows for custom settings as well.
positional arguments:
server
options:
-h, --help show this help message and exit
--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)