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:
    max-request: 2
    product: kubernetes
    shodan-query: title:"Kubernetes Web View"
    vendor: kubernetes
    verified: true
  tags: panel,misconfig,kubernetes,k8s

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: 4a0a00473045022100e07cbb93b2724e5577498fdaeb439a0ba519576d6e720b935c5d005ae8faa5a1022067724ae9d032a830de95184eb1dfd124e320476eea7310de29154183d54999f9:922c64590222798bb761d5b6d8e72950