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
    vendor: metabase
    product: metabase
    shodan-query:
      - http.title:"Metabase"
      - http.title:"metabase"
    fofa-query:
      - title="metabase"
      - app="metabase"
    google-query: intitle:"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+.?\d?)"'
# digest: 490a0046304402203f1606f2e0237099c5d0d28e6b879068c41ef3fc9474421e13294901f2dd7d6f02204ddea897fc9b30fa9dca040e97f010da21da2346bb6b154a9e5c33a5a181206f:922c64590222798bb761d5b6d8e72950