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

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: 490a0046304402205f51e701d81e33ecd05a3d460555c446916e4a9816274b7a41f918a98bb25b1a02203c2d9b39caae4f8e755bd2ce0322dc15ede761a5ba372a2d6cc300d73c444d5b:922c64590222798bb761d5b6d8e72950