漏洞描述
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,vuln
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: 4b0a004830460221009e4d081b714a46bfdf0e333e20aa857ea5bc99d73043f83cc89a42caa126d8ee0221008bedb2f946f9d39381a7fed5d4408d92d09824fa6d3b62e14e73e66ac808c923:922c64590222798bb761d5b6d8e72950