The Brain Left Unlocked: Public etcd and the Risks Beneath Kubern
An etcd instance exposed on port 2379 accepted API requests without authentication, letting anyone read, add and delete keys. Because etcd stores Kubernetes cluster state, an attacker could view sensitive configuration and modify or remove stored data.
This story outline my weekend journey through etcd and digging deep dive into how to exploit and all in the unconventional ways in which i learnt.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the etcd instance was exposed to the internet without authentication enabled, so its API accepted unauthenticated read and write requests.
Impact
An unauthenticated attacker could read exposed configuration and secrets and could also add or delete keys, potentially disrupting the cluster that relies on etcd.
What the attacker needed
Etcd reachable on the internet; authentication not enabled
How it was found
- Find a host with port 2379 open and note the 404 page
- Identify the service as etcd using Shodan
- Query the etcd API endpoints without credentials
- Browse the /v2/keys API to read stored keys
- Use the API to add or delete keys
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
etcd is a database that Kubernetes uses to remember everything about a cluster, such as settings and secrets. This one was reachable from the internet and did not ask for a password, so anyone who found it could read its contents and even change or delete entries.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.