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