id: sitecore-version

info:
  name: Sitecore version detection
  author: bernardofsr
  severity: info
  reference:
    - https://www.cvedetails.com/vulnerability-list/vendor_id-9609/Sitecore.html
  metadata:
    max-request: 1
  tags: sitecore,tech,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/sitecore/shell/sitecore.version.xml"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "Sitecore Corporation"
        part: body

    extractors:
      - type: regex
        group: 1
        regex:
          - "<major>([0-9]+)</major>"

      - type: regex
        group: 1
        regex:
          - "<minor>([0-9]+)</minor>"

      - type: regex
        group: 1
        regex:
          - "<build>([0-9]+)</build>"

      - type: regex
        group: 1
        regex:
          - "<revision>([0-9]+)</revision>"
# digest: 4a0a00473045022017c5decdfd6e268b1174ea7eb9c3dc4d8486a6ccb210da96824181090ffd768d022100ae1bb50cb874a8bdebcb348824d19da8236916137f45a21f4969d8a1db8ccfd6:922c64590222798bb761d5b6d8e72950