Skip to content
Access control Write-up Intermediate

How the Sys:All Loophole Allowed Us To Penetrate GKE Clusters in Production

GKE clusters were misconfigured so that the system:authenticated group, which includes any Google account holder, had excessive permissions. Attackers could use a generic Google token to query the Kubernetes API and extract secrets such as AWS keys, leading to further access to S3 buckets and internal systems.

orca.security

Published on orca.security

Following our discovery of a critical loophole in Google Kubernetes Engine (GKE) dubbed Sys:All, we decided to conduct research into the real-world impacts of this issue. Our initial probe already revealed over a thousand vulnerable GKE clusters due to admins configuring RBAC bindings making the system:authenticated…

Ofir Yakobi, on orca.security

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 assigned custom roles with excessive permissions to the system:authenticated group, which includes all Google users, due to misunderstanding its scope.

Impact

Attackers could gain unauthorized access to sensitive data including JWT tokens, cloud API keys, private keys, and administrator credentials, potentially leading to system-wide breaches; Google now blocks binding system:authenticated to cluster-admin in GKE 1.28+, but other roles remain assignable.

What the attacker needed

Any Google account; target GKE cluster with overprivileged system:authenticated…

The fix

Google blocked binding system:authenticated to cluster-admin in GKE 1.28+, but organisations should follow least privilege and avoid assigning any excessive roles to that group.

How it was found

  1. Obtain a generic Google authentication token via the OAuth 2.0 Playground.
  2. Use a Python script to interact with the Kubernetes API of targeted clusters.
  3. Extract configmaps, secrets, and service account details.
  4. Run Orca Secret-Detector on the retrieved data to find secret patterns.
  5. Use exposed AWS credentials to list and download S3 bucket contents.
  6. Analyse logs to find administrator credentials and internal service URLs.

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 Google Kubernetes Engine, a group called system:authenticated automatically includes every Google user, even outsiders. If administrators accidentally give that group too many permissions, any Google user can read cluster data. The researchers found many clusters where this happened and used it to steal passwords and keys.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.