Detection rules › Sigma

CVE-2023-1389 Potential Exploitation Attempt - Unauthenticated Command Injection In TP-Link Archer AX21

Status
test
Severity
medium
Log source
category proxy
Author
Nasreddine Bencherchali (Nextron Systems), Rohit Jain
Source
github.com/SigmaHQ/sigma

Detects potential exploitation attempt of CVE-2023-1389 an Unauthenticated Command Injection in TP-Link Archer AX21.

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1190 Exploit Public-Facing Application

Rule body yaml

title: CVE-2023-1389 Potential Exploitation Attempt - Unauthenticated Command Injection In TP-Link Archer AX21
id: 6c7defa9-69f8-4c34-b815-41fce3931754
status: test
description: |
    Detects potential exploitation attempt of CVE-2023-1389 an Unauthenticated Command Injection in TP-Link Archer AX21.
references:
    - https://www.tenable.com/security/research/tra-2023-11
    - https://github.com/Voyag3r-Security/CVE-2023-1389/blob/4ecada7335b17bf543c0e33b2c9fb6b6215c09ae/archer-rev-shell.py
    - https://www.zerodayinitiative.com/blog/2023/4/21/tp-link-wan-side-vulnerability-cve-2023-1389-added-to-the-mirai-botnet-arsenal
author: Nasreddine Bencherchali (Nextron Systems), Rohit Jain
date: 2024-06-25
tags:
    - attack.initial-access
    - attack.t1190
    - cve.2023-1389
    - detection.emerging-threats
logsource:
    category: proxy
detection:
    selection_uri:
        cs-method:
            - 'GET'
            - 'POST'
        cs-uri|contains|all:
            - '/cgi-bin/luci/;stok=/locale'
            - 'form=country'
    selection_keyword:
        - 'operation=write'
        - 'country=$('
    condition: all of selection_*
falsepositives:
    - Vulnerability Scanners
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_uri

selection_uri:
    cs-method:
        - 'GET'
        - 'POST'
    cs-uri|contains|all:
        - '/cgi-bin/luci/;stok=/locale'
        - 'form=country'

Stage 2: selection_keyword

selection_keyword:
    - 'operation=write'
    - 'country=$('

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-methodeq
  • GET
  • POST
cs-urimatch
  • /cgi-bin/luci/;stok=/locale
  • form=country