Detection rules › Sigma
Fortinet CVE-2021-22123 Exploitation
Detects CVE-2021-22123 exploitation attempt against Fortinet WAFs
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Initial Access | T1190 Exploit Public-Facing Application |
Rule body yaml
title: Fortinet CVE-2021-22123 Exploitation
id: f425637f-891c-4191-a6c4-3bb1b70513b4
status: test
description: Detects CVE-2021-22123 exploitation attempt against Fortinet WAFs
references:
- https://www.rapid7.com/blog/post/2021/08/17/fortinet-fortiweb-os-command-injection
author: Bhabesh Raj, Florian Roth
date: 2021-08-19
modified: 2023-01-02
tags:
- attack.initial-access
- attack.t1190
- cve.2021-22123
- detection.emerging-threats
logsource:
category: webserver
detection:
selection:
cs-uri-query|contains: '/api/v2.0/user/remoteserver.saml'
cs-method: POST
filter1:
cs-referer|contains: '/root/user/remote-user/saml-user/'
filter2:
cs-referer: null
condition: selection and not filter1 and not filter2
falsepositives:
- Unknown
level: critical
Stages and Predicates
Stage 0: condition
selection and not filter1 and not filter2Stage 1: selection
selection:
cs-uri-query|contains: '/api/v2.0/user/remoteserver.saml'
cs-method: POST
Stage 2: not filter1
filter1:
cs-referer|contains: '/root/user/remote-user/saml-user/'
Stage 3: not filter2
filter2:
cs-referer: null
Exclusions
Top-level NOT(...) conjuncts: predicates this rule actively suppresses.
| Field | Kind | Excluded values |
|---|---|---|
cs-referer | match | /root/user/remote-user/saml-user/ |
cs-referer | is_null |
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
cs-method | eq |
|
cs-uri-query | match |
|