Sys:All: How A Simple Loophole in Google Kubernetes Engine Puts Clusters at Risk of Compromise
The system:authenticated group in GKE includes any Google account, and administrators may mistakenly bind it to overly permissive roles. An attacker with any Google account could then authenticate to the cluster and gain those permissions, potentially leading to cluster compromise.
Published on orca.security
The Orca Research Pod has uncovered a dangerous loophole in Google Kubernetes Engine (GKE) that could allow an attacker with any Google account to take over a misconfigured Kubernetes cluster, potentially leading to serious security incidents such as cryptomining, denial of service, and sensitive data theft.
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, administrators misunderstand that the system:authenticated group in GKE includes any Google account, and bind it to permissive roles.
Impact
An attacker with any Google account could gain the permissions bound to system:authenticated, potentially leading to cluster-admin access, secret listing, or write/delete actions, enabling cryptomining, denial of service, or data theft.
What the attacker needed
A Google account; GKE cluster with permissive role bound to…; network access to the cluster API
The fix
Google blocked binding system:authenticated to cluster-admin in GKE 1.28+, notifies vulnerable customers, and plans architectural changes; administrators should follow least privilege and avoid binding permissive roles to system:authenticated.
How it was found
- Create a temporary GKE cluster with default settings.
- Access nonResourceURLs allowed by the system:public-info-viewer role without authentication.
- Obtain a Google OAuth 2.0 bearer token via the OAuth 2.0 Playground with the Kubernetes Engine API scope.
- Use the token in the Authorization header to authenticate as system:authenticated.
- Use SelfSubjectRulesReview to discover permissions granted to system:authenticated.
- List secrets in the cluster to achieve compromise.
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.
In Kubernetes, a group called system:authenticated is meant to represent users who have logged in. In Google Kubernetes Engine, this group includes anyone with a Google account, not just people from your organisation. If an administrator gives this group extra permissions, any Google user could use them to access the cluster.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.