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,discovery

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: 4a0a0047304502203fff0f765978e6463832e7b66b269a3944a8243b669a7e130771a443dc8e75b7022100a7ef4157b78096572ec480a7ac0f15fc057a762af6d25575e47c97a259882598:922c64590222798bb761d5b6d8e72950