id: sitecore-cms

info:
  name: Sitecore CMS - Detect
  author: RandomDhiraj
  severity: info
  description: |
    Detect Sitecore Content Management System (CMS) websites based on a redirect from the sitecore media handler URL pattern to the notfound.aspx page.
  reference:
    - https://www.sitecore.com
  classification:
    cpe: cpe:2.3:a:sitecore:cms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: sitecore
    product: cms
    shodan-query: title:"sitecore"
  tags: cms,sitecore,tech,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/-/media/doo-doo.ashx"

    host-redirects: true

    matchers-condition: and
    matchers:
      - type: regex
        part: header
        regex:
          - "Location: /sitecore/service/notfound.aspx"

      - type: status
        status:
          - 302
# digest: 4a0a004730450221008f177e78a6605a02b9f22c4c11e5fafdd1d60ac3c8426fbc2c5946c1ce313cad022010f8b91b692dc80e904295b19c1ebea90dcf1fee0123454913d566d68607ca0b:922c64590222798bb761d5b6d8e72950