id: metabase-panel

info:
  name: Metabase Login Panel - Detect
  author: revblock,daffainfo
  severity: info
  description: Metabase 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:metabase:metabase:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    product: metabase
    shodan-query: http.title:"Metabase"
    vendor: metabase
  tags: panel,metabase,login

http:
  - method: GET
    path:
      - "{{BaseURL}}/auth/login"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - "<title>Metabase</title>"
          - "window.MetabaseBootstrap"
          - "window.MetabaseRoot"
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '"(v\d+.\d+.\d+)"'
# digest: 490a0046304402203dafabcb1cbef864ae4a16dea90c46d409c202271964246a52a90eb203768e090220339fb6e37b8625fa295730a5a7ad164ebfc5e4a73493162d11becaef28d20c68:922c64590222798bb761d5b6d8e72950