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

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