PoC Monitor
← All CVEs
CVE-2020-8515published 1 Feb 2020 12:36 UTCData: JSON · API

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.

First public PoC 57 daysafter publication · 30 Mar 2020 · Exploit-DB
Public PoCs42 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CISA ADP · CWE-78
CISA KEV 3 Nov 20211.8 years after publication

Timeline

Days relative to CVE publication
t=0+90+180+270+360+450+540+630CVE published1 Feb 2020 · t = 0First public PoC30 Mar 2020 · t+57dAdded to CISA KEV3 Nov 2021 · t+1.8y

First 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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
Exploit-DBMultiple DrayTek Products - Pre-authentication Remote Root Code Execution30 Mar 202014 Nov 2026
nuclei templatenuclei template: DrayTek - Remote Code Executionunknown14 Nov 2026

PoC characteristics

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

POST /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=login keyPath= loginUser=user loginPwd=password keyPath=' /bin/ loginUser=a loginPwd=a in application/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.

POST /cgi-bin/mainfunction.cgi
(?i)^/cgi-bin/mainfunction\.cgi(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /cgi-bin/mainfunction.cgi
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.

POST /cgi-bin/mainfunction.cgi
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