Escalating Privileges in Google Cloud via Open Groups
A Google Cloud IAM policy granted roles to a Google Group with open join settings, allowing any member of the organisation to join the group and inherit those permissions. An attacker with a basic organisation account could thus escalate privileges to the group's roles, such as Storage Admin on a project.
Published on netspi.com
Technical / Cloud Pentesting
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 lack of a guardrail preventing administrators from assigning GCP roles to Google Groups that have open join settings, combined with the default ability for organisation members to join such groups.
Impact
A member user of the organisation could join an open group and inherit any permissions granted to that group, potentially gaining broad access such as Storage Admin on projects.
What the attacker needed
A member account in the organisation; target group has open join settings; target group has GCP IAM roles
The fix
The issue was classified as intended behaviour, so no fix was applied; organisations should validate group access settings before assigning roles and use Security Command Center to detect open groups with IAM bindings.
How it was found
- As a normal organisation user, browse to the Google Groups console and identify groups with open join settings.
- Join the target group by clicking the 'Join group' button.
- Refresh the Google Cloud Console session after a few minutes.
- Observe new projects and resources accessible due to inherited permissions.
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 Cloud, permissions are often given to groups rather than to individual people. If a group is set so that anyone in the organisation can join it, then any employee can add themselves to that group and automatically get all the permissions the group has. This report shows that this can let a normal user gain powerful access, like being able to manage storage in a project.
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.