Detection rules › Sigma

Arcadyan Router Exploitations

Status
test
Severity
critical
Log source
category webserver
Author
Bhabesh Raj
Source
github.com/SigmaHQ/sigma

Detects exploitation of vulnerabilities in Arcadyan routers as reported in CVE-2021-20090 and CVE-2021-20091.

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1190 Exploit Public-Facing Application

Rule body yaml

title: Arcadyan Router Exploitations
id: f0500377-bc70-425d-ac8c-e956cd906871
status: test
description: Detects exploitation of vulnerabilities in Arcadyan routers as reported in CVE-2021-20090 and CVE-2021-20091.
references:
    - https://medium.com/tenable-techblog/bypassing-authentication-on-arcadyan-routers-with-cve-2021-20090-and-rooting-some-buffalo-ea1dd30980c2
    - https://www.tenable.com/security/research/tra-2021-13
    - https://blogs.juniper.net/en-us/security/freshly-disclosed-vulnerability-cve-2021-20090-exploited-in-the-wild
author: Bhabesh Raj
date: 2021-08-24
modified: 2023-01-02
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2021-20090
    - cve.2021-20091
    - detection.emerging-threats
logsource:
    category: webserver
detection:
    path_traversal:
        # CVE-2021-20090 (Bypass Auth: Path Traversal)
        cs-uri-query|contains: '..%2f'
    config_file_inj:
        cs-uri-query|contains|all:
            # Chaining of CVE-2021-20090 (Bypass Auth) and CVE-2021-20091 (Config File Injection)
            - '..%2f'
            - 'apply_abstract.cgi'
    noauth_list:
        cs-uri-query|contains:
            - '/images/'
            - '/js/'
            - '/css/'
            - '/setup_top_login.htm'
            - '/login.html'
            - '/loginerror.html'
            - '/loginexclude.html'
            - '/loginlock.html'
    condition: (path_traversal or config_file_inj) and noauth_list
falsepositives:
    - Unknown
level: critical

Stages and Predicates

Stage 0: condition

(path_traversal or config_file_inj) and noauth_list

Stage 1: path_traversal

path_traversal:
    cs-uri-query|contains: '..%2f'

Stage 2: config_file_inj

config_file_inj:
    cs-uri-query|contains|all:
        - '..%2f'
        - 'apply_abstract.cgi'

Stage 3: noauth_list

noauth_list:
    cs-uri-query|contains:
        - '/images/'
        - '/js/'
        - '/css/'
        - '/setup_top_login.htm'
        - '/login.html'
        - '/loginerror.html'
        - '/loginexclude.html'
        - '/loginlock.html'

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.

FieldKindValues
cs-uri-querymatch
  • ..%2f
  • /css/
  • /images/
  • /js/
  • /login.html
  • /loginerror.html
  • /loginexclude.html
  • /loginlock.html
  • /setup_top_login.htm
  • apply_abstract.cgi