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
    vendor: strapi
    product: 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: 4a0a00473045022100a5011a64a0281b9817c526d1e01a6f10c611e4bf73837370fe6a4f9e9d3af6c902203cd8bb9fb467aa22f5bfca4dde0fead8cb5a9694d9a461f70363c4a1be83730b:922c64590222798bb761d5b6d8e72950