Skip to content
Access control Write-up Intermediate

Three Privilege Escalation Bugs in Google Cloud Platform’s OS Login

OS Login let non-administrative IAM users escalate to local root on compute instances through several methods.

Chris Moberly Follow

Published on initblog.com

Google Cloud Platform provides OS Login for managing SSH access to compute instance using IAM roles. This abstracts the management of multiple local Linux accounts behind a single Google identity (like a GSuite account), bringing with it some cool features like centralized management and multi-factor authentication…

initstring, on initblog.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

Impact

A user with only the non-administrative compute.osLogin role could escalate to root on the compute instance, but only after already having SSH access via that role.

How it was found

  1. Log in via SSH as a user with the non-administrative compute.osLogin role.

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.

OS Login lets admins give SSH access without full admin rights, but flaws let a normal user become root on the machine.

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.

More by Chris Moberly

View all

2 more disclosed reports, best first.

More from Google

View all

The newest disclosed reports for this program.

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.