DrayTek Multiple Vigor Routers
Multiple DrayTek Vigor Routers Web Management Page Vulnerability
Edge device · Router / network deviceknown edge product: DrayTek Multiple Vigor Routers Multiple DrayTek Vigor (high confidence)
DrayTek Vigor2960 1.3.1_Beta, Vigor3900 1.4.4_Beta, and Vigor300B 1.3.3_Beta, 1.4.2.1_Beta, and 1.4.4_Beta devices allow remote code execution as root (without authentication) via shell metacharacters to the cgi-bin/mainfunction.cgi URI. This issue has been fixed in Vigor3900/2960/300B v1.5.1.
Timeline
Days relative to CVE publicationFirst public PoC 57 days after publication; added to CISA KEV 1.8 years after publication. First PoC: Multiple DrayTek Products - Pre-authentication Remote Root Code Execution (Exploit-DB, 30 Mar 2020).
PoC repositories
Found on GitHub.2 PoCs · 2 pending · 1 informational
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| imjdl/CVE-2020-8515-PoC | 30 Mar 2020 +58 d | 14 | PoC |
| darrenmartyn/CVE-2020-8515 | 1 Sep 2021 +1.6 y | 5 | PoC |
Pending 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| trhacknon/CVE-2020-8515 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| trhacknon/CVE-2020-8515-PoC | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| truerandom/nmap_draytek_rce | 31 Mar 2020 +59 d | 3 | Informational · detection |
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 |
|---|---|---|---|
| Exploit-DB | Multiple DrayTek Products - Pre-authentication Remote Root Code Execution | 30 Mar 2020 | 14 Nov 2026 |
| nuclei template | nuclei template: DrayTek - Remote Code Execution | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /cgi-bin/mainfunction.cgi
- Key headers
Useragent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0- Body markers
action=loginkeyPath=loginUser=userloginPwd=passwordkeyPath=' /bin/loginUser=aloginPwd=ainapplication/x-www-form-urlencoded- Ports
- 8080
- Seen in
- 2 repos: darrenmartyn/CVE-2020-8515, imjdl/CVE-2020-8515-PoC
- Evidence
- darrenmartyn/CVE-2020-8515/draytek.py:32 imjdl/CVE-2020-8515-PoC/PoC.py:72
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/cgi-bin/mainfunction\.cgi(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2020-8515 DrayTek Multiple Vigor Routers exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/cgi-bin/mainfunction.cgi"; http.header; content:"Useragent: Mozilla/5.0 (Windows NT 10.0|3b| Win64|3b| x64|3b| rv:75.0) Gecko/20100101 Firefox/75.0"; nocase; http.request_body; content:"action=login"; http.request_body; content:"keyPath="; http.request_body; content:"loginUser=user"; http.request_body; content:"loginPwd=password"; http.request_body; content:"keyPath=' /bin/"; http.request_body; content:"loginUser=a"; http.request_body; content:"loginPwd=a"; reference:url,poc.griffinguard.io/cve/CVE-2020-8515; classtype:web-application-attack; sid:9043743; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: DrayTek Multiple Vigor Routers exploit attempt (CVE-2020-8515)
id: gg-pocmon-cve-2020-8515-9043743
status: experimental
description: Request pattern taken from public PoCs for CVE-2020-8515. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2020-8515
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/cgi-bin/mainfunction.cgi'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2020.8515