id: strapi-cms-detect

info:
  name: Strapi CMS detect
  author: cyllective,daffainfo,idealphase
  severity: info
  description: Open source Node.js Headless CMS to easily build customisable APIs
  reference:
    - https://github.com/strapi/strapi
  metadata:
    max-request: 1
  tags: tech,strapi,cms

http:
  - method: GET
    path:
      - "{{BaseURL}}/admin/init"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"data"'
          - '"uuid"'
          - '"hasAdmin"'
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '"strapiVersion":"([0-9.]+)"'
# digest: 490a004630440220385071a37977e114c6b83983ba53ff7d44b3c8b04a52b7acafa84643e959e257022053afd0e17167d6c8bb2442f44d1fb02967d13ffc0bdcc77b13865a71338be02d:922c64590222798bb761d5b6d8e72950