id: strapi-panel

info:
  name: Strapi Login Panel - Detect
  author: idealphase,righettod
  severity: info
  description: |
    Strapi login panel was detected.
  reference:
    - https://github.com/strapi/strapi
    - https://strapi.io/
  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
    shodan-query: http.title:"strapi"
  tags: panel,strapi,login,discovery

http:
  - method: GET
    path:
      - '{{BaseURL}}/admin/auth/login'
      - '{{BaseURL}}/admin/plugins/users-permissions/auth/login'

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "<title>strapi admin</title>", "<title>welcome to your strapi app</title>")'
        condition: and
# digest: 4b0a00483046022100a7028f634ba179feabbb6f33f547fa0188927f72f7530e9e79841f4f192a1dba022100b5662e8cdeb4a5bf2fc2af60ea04ed13a4b7407e940973ec22b9a2497431ad03:922c64590222798bb761d5b6d8e72950