id: dlink-unauth-cgi-script

info:
  name: D-Link DNS Series  CGI Script - Unauthenticated
  author: pussycat0x
  severity: low
  description: |
    A vulnerability has been identified in the D-Link DNS series network storage devices, allowing for the exposure of sensitive device information to unauthorized actors. This vulnerability is due to an unauthenticated access flaw in the info.cgi script, which can be exploited via a simple HTTP GET request, affecting over 920,000 devices on the Internet.
  reference:
    - https://github.com/netsecfish/info_cgi
  metadata:
    verified: true
    fofa-query: app="D_Link-DNS"
  tags: unauth,dlink,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/info.cgi"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Product="
          - "Version="
          - "Model="
        condition: and

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