Skip to content
Access control Write-up Advanced

GCP IAM Authorization Bypass

Config Connector, a Kubernetes operator for GCP, passed a user-supplied organisation ID straight to the GCP IAM API using its own elevated service account without checking whether the Kubernetes user had any GCP IAM permissions. A user with only namespace-level kubectl access could therefore grant roles/owner on an entire GCP organisation, or replace the whole organisation IAM policy.

olearysec.com

Published on olearysec.com

By Justin O'Leary June 18, 2026 None (vendor rejected) Unpatched

Justin O'Leary, on olearysec.com

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 a confused deputy flaw: Config Connector resolves an externally supplied organisation reference and calls the GCP IAM API with its own privileged service account, without verifying the requesting Kubernetes user holds the equivalent GCP IAM permission.

Impact

A namespace user with no GCP permissions could gain organisation owner, replace the entire organisation IAM policy, lock out administrators, and grant access to any external identity; the text notes Google disputes this and has not patched it.

What the attacker needed

Kubectl access to a Kubernetes namespace; Config Connector installed in the cluster; Config Connector SA with org-level role

The fix

Config Connector should verify that the Kubernetes user holds the equivalent GCP permission, such as resourcemanager.organizations.setIamPolicy, on the target resource before acting; the text says Google has not patched it.

How it was found

  1. As a Kubernetes namespace user, apply an IAMPolicyMember resource that references an external organisation.
  2. Config Connector processes the resource without any authorisation check and reports it as ready.
  3. The IAM binding is created on the target organisation, giving the chosen identity organisation-level access.

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.

Kubernetes lets teams run workloads in separate areas called namespaces, and Config Connector is a helper that lets those workloads create Google Cloud resources. That helper runs with powerful Google Cloud credentials, so when it acts on a request it should first check that the person asking is allowed to do it. Here it never checked, so anyone who could create one particular resource in a namespace could quietly give themselves ownership of the whole Google Cloud organisation.

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.