id: sitemap-detect

info:
  name: Sitemap Detection
  author: houdinis
  severity: info
  description: |
    A sitemap is a file where you provide information about the pages, videos, and other files on your site, and the relationships between them.
  metadata:
    verified: true
    max-request: 3
    google-query: intext:"sitemap" filetype:txt,filetype:xml inurl:sitemap,inurl:"/sitemap.xsd" ext:xsd
  tags: miscellaneous,misc,generic,sitemap

http:
  - method: GET
    path:
      - "{{BaseURL}}/sitemap.xml"
      - "{{BaseURL}}/sitemap.xsl"
      - "{{BaseURL}}/sitemap.xsd"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "sitemap>"
        case-insensitive: true

      - type: word
        part: header
        words:
          - 'application/xml'

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