Skip to content
Leaked secrets Write-up Beginner

How I Earned $200 Using GitHub Dorking: A Manual and Automated Guide to Finding Sensitive Information

A public GitHub repository belonging to an organisation exposed an AWS access key and secret. The attacker could use these credentials to access an S3 bucket, potentially leading to data exposure or other cloud resource abuse.

Akash Ghosh Follow

Published on infosecwriteups.com

GitHub is a goldmine for bug bounty hunters and security researchers, with countless repositories containing sensitive information — API keys, credentials, private tokens, and more. All it takes is the right search query (a.k.a. dorking) to uncover these treasures.

Akash Ghosh, on infosecwriteups.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

The keys provided full access to an S3 bucket, which could have allowed an attacker to read, modify, or delete data, depending on the bucket's contents and permissions.

What the attacker needed

Public GitHub repository; AWS credentials committed; GitHub search access

How it was found

  1. Search GitHub for the organisation's repositories using the org: operator.
  2. Combine dorks with the organisation name to find specific results.
  3. Use the dork AWS_SECRET_ACCESS_KEY org:<organization-name> to search for exposed keys.
  4. Discover aws_access_key_id and access_key in a repository.
  5. Verify the key's validity and permissions using the AWS CLI.
  6. Report the finding to the company and receive a bounty.

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.

Developers sometimes accidentally upload secret keys to public code repositories. Here, an Amazon Web Services (AWS) key was left in a public GitHub repository. Anyone who found it could use it to access the company's cloud storage, which is like leaving a key to a storage unit in a public place.

What is Leaked secrets?

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

More by Akash Ghosh

View all

8 more disclosed reports, best first.

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.