漏洞描述
Kubernetes private etcd keys are exposed.
id: kubernetes-etcd-keys
info:
name: Kubernetes etcd Keys - Exposure
author: Hardik-Solanki
severity: medium
description: Kubernetes private etcd keys are exposed.
reference:
- https://github.com/maurosoria/dirsearch/blob/master/db/dicc.txt
metadata:
verified: true
max-request: 1
github-query: filename:apiserver-etcd-client.key
tags: files,exposure,kubernetes,k8s
http:
- method: GET
path:
- "{{BaseURL}}/apiserver-etcd-client.key"
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- '(?m)^-----BEGIN PRIVATE KEY-----'
- type: word
part: header
words:
- "application/json"
- "application/html"
condition: and
negative: true
- type: status
status:
- 200
# digest: 4b0a00483046022100fd08da8cb9eb734dac351dd285add6797cdb524a51e612ebe043c72fed9518680221009baadfc38a420f8322944c2169eb171efa93156539384efd7e6a215ea953a29e:922c64590222798bb761d5b6d8e72950