id: kafka-api-cluster

info:
  name: Kafka Operation API - Cluster
  author: DhiyaneshDk
  severity: high
  description: |
    Kafka Operation API Cluster page was detected and appeared to be accessible without authentication.
  classification:
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
  tags: kafka,misconfig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/kafka/clusters"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "bootstrap_servers", "brokers", "version")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022052318c69589728c90d128c66ffbb309a1999e1c2e3832d99eb5f082e9a404eb3022100cfe9f2dcdc29eff4d920d384b616b4a0593d413b9dee50f07fa28a4ed95cc160:922c64590222798bb761d5b6d8e72950