id: unauth-apache-kafka-ui

info:
  name: Apache Kafka - Unauthorized UI Exposure
  author: theamanrawat
  severity: medium
  description: Unauthorized access to apache kakfa UI.
  reference:
    - https://www.acunetix.com/vulnerabilities/web/apache-kafka-unauthorized-access-vulnerability
    - https://github.com/provectus/kafka-ui
  classification:
    cpe: cpe:2.3:a:apache:kafka:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: apache
    product: kafka
    shodan-query: http.title:"UI for Apache Kafka"
  tags: misconfig,apache,kafka,unauth,exposure

http:
  - method: GET
    path:
      - '{{BaseURL}}'
      - '{{BaseURL}}/ui/clusters/kafka-ui/brokers'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>UI for Apache Kafka</title>'

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100dc898dab1706bdba4c19837596c581f88e0acd5d93e9e36714259de3693139340220713406cbb735301d975fbe2b36c7f91d9d82119f5fa1eaa23d833b5f1f370e72:922c64590222798bb761d5b6d8e72950