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