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.
Timeline
Days relative to CVE publicationFirst 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
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 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
Below the suspicion threshold (50); does not change the assessment. |
| byteofjoshua/CVE-2021-40870 | 7 Oct 2021 +25 d | 3 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| orangmuda/CVE-2021-40870 | 7 Oct 2021 +25 d | 3 | PoC
Flags · score 30
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.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Aviatrix Controller 6.x before 6.5-1804.1922 - Remote Command Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 6 PoC reposPOST /v1/backend1
- Body markers
CID=xaction=set_metric_gw_selectionsaccount_name=/../../../var/www/php/data=poc by agundata=inapplication/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/{var}
- Seen in
- 5 repos: JoyGhoshs/CVE-2021-40870, System00-Security/CVE-2021-40870, byteofandri/CVE-2021-40870, byteofjoshua/CVE-2021-40870, orangmuda/CVE-2021-40870
- Evidence
- JoyGhoshs/CVE-2021-40870/CVE-2021-40870.py:34 System00-Security/CVE-2021-40870/CVE-2021-40870.py:34 byteofandri/CVE-2021-40870/exploit.py:34 byteofjoshua/CVE-2021-40870/exploit.py:34 orangmuda/CVE-2021-40870/exploit.py:34
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.
(?i)^/v1/backend1(?:[?#].*)?$
(?i)^/v1/[^/?#]*(?:[?#].*)?$
(?i)^/v1/RCE\.php(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
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;)
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;)
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.
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
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
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