id: webdav-enabled

info:
  name: WebDAV Protocol - Detect
  author: tess
  severity: info
  description: |
    WebDAV protocol was detected.
  remediation: |
    Recommended disabling if not currently in use.
  reference:
    - https://www.acunetix.com/vulnerabilities/web/webdav-enabled/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 3
    shodan-query: "Ms-Author-Via: DAV"
  tags: webdav,misconfig,exposure

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}
      - |
        OPTIONS / HTTP/1.1
        Host: {{Hostname}}
      - |
        OPTIONS / HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic YW5vbnltb3VzOmFub255bW91cw==

    stop-at-first-match: true
    matchers:
      - type: word
        part: header
        words:
          - "Ms-Author-Via: DAV"
# digest: 4a0a0047304502204ae138b0b552a411aaa4cf1bcd557ff66919056d7c23ab496a48ae409b202aee022100de4e1a741ba615bf1ab6e540da0f14355e97c355c4438f27e93bb6a91e63c0c0:922c64590222798bb761d5b6d8e72950