id: kafka-center-default-login

info:
  name: Apache Kafka Center Default Login
  author: dhiyaneshDK
  severity: high
  description: Apache Kafka Center default admin credentials were discovered.
  reference:
    - https://developer.ibm.com/tutorials/kafka-authn-authz/
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    max-request: 1
    shodan-query: http.title:"Kafka Center"
  tags: kafka,default-login,vuln

http:
  - raw:
      - |
        POST /login/system HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"name":"{{username}}","password":"{{password}}","checkbox":false}

    attack: pitchfork
    payloads:
      username:
        - admin
      password:
        - admin

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"code":200'
          - '"name":"admin"'
        condition: and

      - type: status
        status:
          - 200
# digest: 490a004630440220609cdeb4459d42fece360c36fa819c613c5dbc15f29d174cd57b9dfa391202ee0220792a6c2237d17cc00c66130943ee167ca104b45bb0b17a5951fee47875d1ed0c:922c64590222798bb761d5b6d8e72950