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,vuln

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: 490a0046304402207d6ae93a220c96ed5e41901a841d853eaadfb2234352278f7bccec8f92b443a7022016bc240b195dd1256f38694872e7eb7e0b7297b2667efeddd5eaee674575d257:922c64590222798bb761d5b6d8e72950