kube-state-metrics: Kube State Metrics Exposure

日期: 2025-08-01 | 影响软件: kube-state-metrics | POC: 已公开

漏洞描述

An attacker can detect the public instance of a Kube-State-Metrics metrics. The Kubernetes API server exposes data about the count, health, and availability of pods, nodes, and other Kubernetes objects.

PoC代码[已公开]

id: kube-state-metrics

info:
  name: Kube State Metrics Exposure
  author: ja1sh
  severity: low
  description: |
    An attacker can detect the public instance of a Kube-State-Metrics metrics. The Kubernetes API server exposes data about the count, health, and availability of pods, nodes, and other Kubernetes objects.
  classification:
    cpe: cpe:2.3:a:kubernetes:kube-state-metrics:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: kubernetes
    product: kube-state-metrics
    shodan-query: title:Kube-state-metrics
  tags: misconfig,exposure,kube-state-metrics,k8s,kubernetes,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/metrics"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - kube-state-metrics
          - go_goroutines
        condition: and

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

相关漏洞推荐