Exposed Kubernetes API - RCE/Exposed Creds
An internal Kubernetes API endpoint was reachable from the internet without authentication. Access to it let the finder run arbitrary jobs with cluster-admin rights and obtain credentials that reached many internal instances.
- Triaged in under an hour
- Fixed in 8 days
- Paid in 8 days
- Disclosed after 2.7 years
Summary by the program
@txt3rob found one of Snaps internal Kubernetes instances exposing an API endpoint without authorization to the public. With access to this API he was able to run arbitrary code/jobs as a cluster-admin and gained access to credentials with internal access to a significant number of instances.
Summary by the researcher
During a worldwide kubernetes scan with binaryedge.io i found a K8 exposed internal API endpoint without authorization to the public.
With access to this API I was able to run arbitrary code/jobs as a cluster-admin and gained access to credentials with internal access to a significant number of instances.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Kubernetes API server was exposed to the public internet without authentication or network restrictions, granting anonymous cluster-admin-level access.
Impact
An unauthenticated attacker could run code as cluster-admin and use stolen credentials to reach a significant number of internal instances.
What the attacker needed
Internet-wide scan for exposed APIs; target API reachable from the internet; no authentication required
How it was found
- Run a worldwide scan for Kubernetes instances using a public internet-scanning service.
- Identify an internal Kubernetes API endpoint that answers without authorization.
- Use the API to run arbitrary code or jobs with cluster-admin privileges.
- Retrieve credentials from the cluster that give access to many internal instances.
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 report has not been written yet. The Original tab links to the source.
Kubernetes is software that runs and manages containers (small packaged apps) across many machines. Its API is the control panel used to start jobs and read secrets, and it is meant to be reachable only from inside the network. Here it was open to anyone on the internet with no login required, so a stranger could act as an administrator.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.