Google Cloud Partner API Credentials Found in Public Repo
A Looker API client ID and secret were leaked in a public GitHub repository, allowing the author to authenticate to a partner-hosted Looker instance and list users, groups, and database connections. Google closed the report as out of scope because the site belonged to a partner.
Published on enterlectury.medium.com
I’m Aditya aka Enterlectury, back with a new write-up. This one is about how I found a Client ID and Secret Key leaked on GitHub, gained admin CLI access, and viewed a lot of product and service data.
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, credentials for a Looker API were committed to a public GitHub repository, exposing them to anyone.
Impact
An attacker with the leaked credentials could view administrative data such as all users, groups, and database connections on the partner-hosted Looker instance; Google considered the site out of scope.
What the attacker needed
Leaked credentials in a public repo; Access to the internet; gzr tool installed
The fix
The leaked credentials should be revoked and removed from the public repository, and secrets should not be committed to source control.
How it was found
- Search Google's GitHub organisation for sensitive keywords related to Looker.
- Identify leaked Looker client ID and secret in a public repository.
- Use the gzr command-line tool with the leaked credentials to list users.
- List groups and database connections using the same credentials.
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.
A client ID and secret are like a username and password that programs use to talk to an API. Someone had accidentally published these in a public code repository, so anyone who found them could log in to the Looker analytics service as an administrator. The author used a command-line tool to list users and other data, but Google said the affected site was run by a partner and not covered by its bug bounty.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.