id: sanity-studio-panel

info:
  name: Sanity Studio Panel - Detect
  author: Shivam Kamboj
  severity: info
  description: |
    Sanity Studio panel was detected. Sanity is a headless CMS platform.
  reference:
    - https://www.sanity.io/
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Sanity Studio"
    fofa-query: title="Sanity Studio"
  tags: panel,sanity,tech,discovery,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    redirects: true
    matchers:
      - type: dsl
        dsl:
          - 'contains_any(body, "<title>Sanity Studio", "window.__sanityErrorChannel", "__sanityError")'
          - 'status_code == 200 || status_code == 302'
        condition: and
# digest: 4a0a00473045022100ccbdec2df86b9922a81ecfa60121c286287c94299719d41b99103e6dcbcf77d802207e5276b9cf39b4f803179dc7afe988d4ea99f6ac95d718be3abcf9f1c4a6c902:922c64590222798bb761d5b6d8e72950