Etcd Server - Unauthenticated Access
ID: unauth-etcd-server
Severity: high
Author: sharath,pussycat0x
Tags: tech,k8s,kubernetes,devops,etcd,unauth,anonymous,misconfig
Description
Section titled “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.
YAML Source
Section titled “YAML Source”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: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/misconfiguration/kubernetes/unauth-etcd-server.yaml"