Skip to content
Leaked secrets Write-up Beginner

How I Got into Google’s Hall of Fame Using GitHub Recon

A Google Cloud API key and a Flask secret key were left exposed in public GitHub repositories, and the keys still worked even after being deleted from the code. The researcher used them to confirm unauthorised access to Google Cloud services, and Google revoked the key and secured the repository.

medium.com

Published on medium.com

Google’s security team recognizes researchers who help identify and report vulnerabilities in their products. As a security researcher, I was able to secure a spot in Google’s Hall of Fame by leveraging GitHub reconnaissance.

Anonymousshetty, on medium.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 secrets were committed to public repositories and never revoked, so they stayed valid after being deleted from the code.

Impact

The exposed keys allowed unauthorised actions against Google Cloud services, though the text does not say which actions or how much data was reachable.

What the attacker needed

Public GitHub repositories in scope; keys committed and not revoked

The fix

The keys were revoked and the repository was secured after the report.

How it was found

  1. Search public Google-owned GitHub repositories for secret keywords using dorking and a secret scanner.
  2. Use an online code search tool to find keys that were deleted from the code but still valid.
  3. Test the found keys against Google Cloud services to confirm they allowed unauthorised actions.
  4. Report the finding through Google's bug bounty platform with reproduction steps and a proof of concept.

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.

When developers upload code to GitHub, they sometimes forget to remove passwords and keys first. A key is like a spare door key for a cloud service: anyone who finds it can use that service as if they were the owner. Here the keys were still valid even after being removed from the code, so finding them was enough to get in.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.