id: headlamp-panel

info:
  name: Headlamp Kubernetes UI Panel - Detect
  author: shamo0
  severity: medium
  description: |
    Detected Headlamp Kubernetes Web UI panel exposed, which could lead to unauthorized access to Kubernetes cluster management if not properly secured.
  reference:
    - https://headlamp.dev/
    - https://github.com/kubernetes-sigs/headlamp
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 2
    product: headlamp
    vendor: kubernetes-sigs
    fofa-query: body="headlampBaseUrl" && body="Headlamp"
  tags: panel,headlamp,kubernetes,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/settings/plugins"
      - "{{BaseURL}}/settings/cluster"

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Headlamp: Kubernetes Web UI", "headlampBaseUrl")'
        condition: and
# digest: 4b0a004830460221009708e3ca820baa4469ce1815cfcdc787cd122b122f20a7558a9f4298be90a959022100c5d7473632883aa8c1c02cf31444f1cf567d968760bf739362ae40dc1d3480fe:922c64590222798bb761d5b6d8e72950