PoC Monitor
← All CVEs
CVE-2021-40870published 13 Sep 2021 07:41 UTCData: JSON · API

Aviatrix Controller

Aviatrix Controller Unrestricted Upload of File

An issue was discovered in Aviatrix Controller 6.x before 6.5-1804.1922. Unrestricted upload of a file with a dangerous type is possible, which allows an unauthenticated user to execute arbitrary code via directory traversal.

First public PoC 24 daysafter publication · 7 Oct 2021
Public PoCs76 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-noinfo
CISA KEV 18 Jan 2022127 days after publication

Timeline

Days relative to CVE publication
t=0+30+60+90+120CVE published13 Sep 2021 · t = 0First public PoC7 Oct 2021 · t+24dAdded to CISA KEV18 Jan 2022 · t+127d

First public PoC 24 days after publication; added to CISA KEV 127 days after publication. First PoC: System00-Security/CVE-2021-40870 (created 7 Oct 2021, found by us: backfilled).

PoC repositories

Found on GitHub.

6 PoCs

PoCs 6
RepositoryCreatedStarsAssessment
System00-Security/CVE-2021-40870 7 Oct 2021 +24 d 0 PoC
0xAgun/CVE-2021-40870 7 Oct 2021 +24 d 15 PoC
byteofandri/CVE-2021-40870 7 Oct 2021 +25 d 3 PoC
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

byteofjoshua/CVE-2021-40870 7 Oct 2021 +25 d 3 PoC
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

orangmuda/CVE-2021-40870 7 Oct 2021 +25 d 3 PoC
Flags · score 30
  • owner account created less than 7 days before the repo

Below the suspicion threshold (50); does not change the assessment.

JoyGhoshs/CVE-2021-40870 8 Oct 2021 +25 d 2 PoC

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Aviatrix Controller 6.x before 6.5-1804.1922 - Remote Command Execution27 Apr 202314 Nov 2026

PoC characteristics

What to hunt for in your logs · from 6 PoC repos

POST /v1/backend1

Body markers
CID=x action=set_metric_gw_selections account_name=/../../../var/www/php/ data=poc by agun data= in application/x-www-form-urlencoded
PoC User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Seen in
6 repos: 0xAgun/CVE-2021-40870, JoyGhoshs/CVE-2021-40870, System00-Security/CVE-2021-40870, byteofandri/CVE-2021-40870, byteofjoshua/CVE-2021-40870, orangmuda/CVE-2021-40870
Evidence
0xAgun/CVE-2021-40870/poc.py:47 JoyGhoshs/CVE-2021-40870/CVE-2021-40870.py:33 System00-Security/CVE-2021-40870/CVE-2021-40870.py:33 byteofandri/CVE-2021-40870/exploit.py:33 byteofjoshua/CVE-2021-40870/exploit.py:33 orangmuda/CVE-2021-40870/exploit.py:33

GET /v1/RCE.php

Seen in
1 repo: 0xAgun/CVE-2021-40870
Evidence
0xAgun/CVE-2021-40870/poc.py:49

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /v1/backend1
(?i)^/v1/backend1(?:[?#].*)?$
GET /v1/{var}
(?i)^/v1/[^/?#]*(?:[?#].*)?$
GET /v1/RCE.php
(?i)^/v1/RCE\.php(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /v1/backend1
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-40870 Aviatrix Aviatrix Controller exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/v1/backend1"; http.request_body; content:"CID=x"; http.request_body; content:"action=set_metric_gw_selections"; http.request_body; content:"account_name=/../../../var/www/php/"; http.request_body; content:"data=poc by agun"; http.request_body; content:"data="; reference:url,poc.griffinguard.io/cve/CVE-2021-40870; classtype:web-application-attack; sid:9620315; rev:1;)
GET /v1/{var}
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-40870 Aviatrix Aviatrix Controller exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/v1/"; reference:url,poc.griffinguard.io/cve/CVE-2021-40870; classtype:web-application-attack; sid:9035733; rev:1;)
GET /v1/RCE.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-40870 Aviatrix Aviatrix Controller exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/v1/RCE.php"; reference:url,poc.griffinguard.io/cve/CVE-2021-40870; classtype:web-application-attack; sid:9405016; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

POST /v1/backend1
title: Aviatrix Aviatrix Controller exploit attempt (CVE-2021-40870)
id: gg-pocmon-cve-2021-40870-9620315
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-40870. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-40870
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/v1/backend1'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.40870
GET /v1/{var}
title: Aviatrix Aviatrix Controller exploit attempt (CVE-2021-40870)
id: gg-pocmon-cve-2021-40870-9035733
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-40870. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-40870
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/v1/'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.40870
GET /v1/RCE.php
title: Aviatrix Aviatrix Controller exploit attempt (CVE-2021-40870)
id: gg-pocmon-cve-2021-40870-9405016
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-40870. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2021-40870
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/v1/RCE.php'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2021.40870