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

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