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: 4a0a00473045022034e5764aafbbc6c19cac738d35f792f7cda6fba56345a2b98012bb9650b3d6c2022100c7d32a862909f554f741d5f1d5adf1af5b46c7c4d746495e4ea267eafddd3a7c:922c64590222798bb761d5b6d8e72950