Sensitive Data Exposure Through Github A Deep Dive Into Bug Ocean
The author found three repositories belonging to a bug bounty program that contained sensitive data such as secret keys and admin passwords. An attacker could use these credentials to access the organisation's systems.
Published on infosecwriteups.com
Hello my hacker buddies, I hope you all are doing great. Keep finding bugs and even if you are not finding them, keep putting effort in it:) In recent days, I have focused less on bounties since I was doing office stuff and many other things.
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 developers committed sensitive credentials such as secret keys and admin passwords to public GitHub repositories.
Impact
An attacker could obtain admin credentials and secret keys, potentially leading to unauthorised access to the organisation's systems.
What the attacker needed
Public GitHub repositories; repositories contain secrets; repositories belong to target org
How it was found
- Use GitHub search with dorks like 'Secret_key=', 'User_secret=', 'admin_passwd=' to find repositories containing sensitive data.
- Filter results to only repositories belonging to the target organisation by adding 'org:' to the dork.
- Review the found repositories to confirm they contain credentials that affect the organisation.
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.
This is about finding secrets like passwords or API keys that developers accidentally left in public code repositories on GitHub. If someone finds these, they might be able to log in to the company's systems or access private data.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.