Kubernetes etcd Keys - Exposure
ID: kubernetes-etcd-keys
Severity: medium
Author: Hardik-Solanki
Tags: files,exposure,kubernetes,k8s
Description
Section titled “Description”Kubernetes private etcd keys are exposed.
YAML Source
Section titled “YAML Source”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:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/exposures/files/kubernetes-etcd-keys.yaml"