id: strapi-documentation

info:
  name: Strapi CMS Documentation Login Panel - Detect
  author: idealphase
  severity: info
  description: Strapi CMS Documentation login panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:strapi:strapi:*:*:*:*:node.js:*:*:*
  metadata:
    max-request: 2
    product: strapi
    vendor: strapi
  tags: strapi,panel

http:
  - method: GET
    path:
      - '{{BaseURL}}/documentation'
      - '{{BaseURL}}/documentation/login'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "x-strapi-config"
          - "https://strapi.io/documentation/"
        condition: or

      - type: word
        words:
          - "<title>Swagger UI</title>"
          - "<title>Login - Documentation</title>"
        condition: or

      - type: status
        status:
          - 200
# digest: 490a0046304402200aea0b725dc3f251d2c3c2bfc1616ed5944090df58d18f6bddf29c98daca754b02206dd0016b9f3fffb90f049ffe7d1dc26370f2a91862c18ab96a044304e98c0c14:922c64590222798bb761d5b6d8e72950