id: kibana-panel

info:
  name: Kibana Login Panel - Detect
  author: petruknisme,daffainfo,c-sh0
  severity: info
  description: Kibana 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:elastic:kibana:*:*:*:*:*:*:*:*
  metadata:
    max-request: 3
    vendor: elastic
    product: kibana
    shodan-query:
      - http.title:"Kibana"
      - http.title:"kibana"
    fofa-query: title="kibana"
    google-query: intitle:"kibana"
  tags: panel,kibana,elastic,discovery

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

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - "<title>Kibana</title>"
          - "<title>Elastic</title>"
          - "<title>Kibana Login</title>"
        condition: or

      - type: regex
        part: header
        regex:
          - '(?i)(Kbn-Name)'
# digest: 4a0a00473045022066350a8e779074c2cd2b4905f3f795dfc70a901810df0818eddc44f5f527f48e022100e571328d43d51d65d996b9317ee8b404404bd4e55d600863e3b789fd0d90fa5b:922c64590222798bb761d5b6d8e72950