id: kiali-panel

info:
  name: Kiali - Detect
  author: righettod
  severity: info
  description: |
    kiali panel was detected.
  reference:
    - https://kiali.io/
  classification:
    cpe: cpe:2.3:a:kiali:kiali:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: kiali
    product: kiali
    shodan-query: title:"Kiali"
  tags: panel,kiali,detect,login,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/kiali/api/status"
      - "{{BaseURL}}/kiali/"

    host-redirects: true
    max-redirects: 2
    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "kiali-ui", "<title>kiali", "kiali version")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)"Kiali version":\s*"([a-z0-9.]+)"'
# digest: 4b0a00483046022100d88c077a41139785d941e015bf300b54b331587f1fda9971d706b3a47fe0cd85022100ffdee3601269fc719fd49b285f9733a2f14e1a55851f7b28b25da95b90223938:922c64590222798bb761d5b6d8e72950