id: kubernetes-web-view

info:
  name: Kubernetes Local Cluster Web View Panel- Detect
  author: tess
  severity: medium
  description: Kubernetes local cluster web view panel discovered.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
    cvss-score: 6.5
    cwe-id: CWE-200
    cpe: cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: kubernetes
    product: kubernetes
    shodan-query:
      - title:"Kubernetes Web View"
      - http.title:"kubernetes web view"
    fofa-query:
      - title="kubernetes web view"
      - app="kubernetes-enterprise-manager"
    google-query: intitle:"kubernetes web view"
  tags: panel,misconfig,kubernetes,k8s,discovery

http:
  - method: GET
    path:
      - '{{BaseURL}}'
      - '{{BaseURL}}/clusters/local'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Kubernetes Web View</title>'
          - 'a href="https://codeberg.org/hjacobs/kube-web-view'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

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