Bug class · Beginner
Leaked secrets and credentials
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.
- median public bounty
- $1,250
How it works
Full lessonThe pattern behind every report in this class.
Leaked secrets and credentials are sensitive values such as API keys, passwords, tokens or private keys that have been exposed through public repositories, client-side code, logs, configuration files or packaged applications. Programs care because these secrets can give attackers direct access to internal systems, customer data or infrastructure, often without needing to exploit a software flaw. The reports in this dataset show that such leaks are common and frequently lead to account takeover, data exposure or further compromise.
This class of issue usually arises from mistakes like hardcoding credentials in source code, committing secret files to public repositories, or failing to redact secrets from logs and build output. It is most often found in public GitHub repositories, JavaScript bundles served to browsers, mobile and desktop application packages, CI/CD logs, and publicly accessible configuration files on staging or production hosts. The evidence also includes leaks in smart contracts, chat channels, and web archives.
For a bug bounty hunter, leaked secrets are a high-value target because they can provide immediate access to systems and data, and demonstrating impact is often straightforward: show that the secret is live and what it can access. However, hunters must be careful to stay in scope and to avoid causing harm when validating credentials. The reports here include many examples where a leaked token or key was used to access repositories, cloud resources, admin panels or user data.
The process starts with reconnaissance: searching public sources for secrets. This includes scanning public repositories on platforms like GitHub for patterns that look like credentials, such as API keys, tokens, passwords or private keys. Hunters also examine client-side JavaScript files, mobile app packages, desktop applications, and publicly accessible configuration files. The evidence shows many cases where secrets were found in dotfiles, environment files, package registries, and even training PDFs.
Things to try
All 178Each line worked in a disclosed report. Test only what a program's scope allows.
Public repository secret hunting 28
- Search public repositories for a leaked token in a public repository and test its scope, access, permissions or validity.
- Search public repositories and old commits for API keys, then check validity against the vendor's key-check endpoint.
- Search public repositories for a hardcoded username and password committed in a commit.
- Search public repositories for a leaked API key tied to a named account and test its scope.
Smart contract hardcoded constants 25
- Check that addresses and constants baked into contract code match the values actually used on each deployment.
- Check whether a hard-coded currency peg can be broken by market conditions.
- Check whether hard-coded pool fees cause incorrect cumulative tick calculations.
- Check whether a single hard-coded cap applied to multiple tokens causes some assets to become stale.
Client-side JavaScript and web bundles 12
- Read page source and bundled scripts for hardcoded usernames and password hashes, then try to crack weak unsalted hashes.
- Inspect a GitHub integration module for hard-coded credentials in its source.
- Scan public JavaScript bundles with a secret scanner for payment and media service API keys.
- Read a JavaScript file for hard-coded credentials and infrastructure addresses, then use them against Docker Hub and code-quality services.
Mobile app binaries 10
- Decompile an Android app and search for hardcoded HTTP basic credentials, then try them on the domain they belong to and on sibling subdomains.
- Decompile an Android app and search the code for API keys and tokens that can be replayed against the backend.
- Extract a Cloudinary key and secret from an Android app and test whether they allow listing, replacing or deleting uploaded files.
- Extract a cloud storage credential from an Android app and test read and write access to the bucket used for uploads.
Token leakage through redirects and referrers 9
- Check the permissions of cookie, HSTS and Alt-Svc cache files created by a command-line client under a permissive umask.
- Redirect a Basic-auth request to a different host and check whether netrc credentials are sent to the new target.
- Check whether TLS connection reuse and session cache honour the fsslctx callback and ssl_config_data flags.
- Check the verify email endpoint for an authorisation token leak.
Bypasses and variations
- Restrictions placed on a Google Maps API key can be bypassed.
- A patch for hardcoded credentials can be bypassed with a variant attack.
- An incomplete fix for TLS session handling can be bypassed with a variant.
Tips for beginners
All 15- Start by searching public repositories for common secret patterns. Use GitHub's code search or dedicated tools to look for strings like 'api_key', 'password', 'token', or file names like '.env', 'config.json', or 'id_rsa'. Focus on repositories belonging to the target organisation or its employees. The evidence shows many leaks in dotfiles, environment files, and configuration files.
- Check client-side JavaScript bundles for hardcoded secrets. Modern web apps often include API keys for third-party services in their JavaScript. Look for strings that resemble keys, and test whether they are live and what they allow. Be aware that some keys are meant to be public (like some map tokens) but may still have insufficient restrictions.
- Inspect mobile and desktop applications. Decompile Android APKs or unpack Electron apps to search for embedded credentials. The evidence includes many cases where API keys, tokens, and even private keys were found in app packages. Pay attention to third-party service credentials, which can sometimes be used to access data or send messages.
- Look through CI/CD logs and build output for secrets. Build scripts sometimes print environment variables or command output that includes tokens. Search public build logs for strings like 'token', 'password', or 'secret'. If you find a token, test its validity carefully.
- When you find a secret, validate it responsibly. Use the least intrusive method to confirm it is live, such as a read-only API call or a request to a key-check endpoint. Avoid actions that could modify or delete data, send messages, or disrupt services. Document exactly what you did and what access you gained.
- Assess the full impact of the secret. Determine what permissions it has and what data it can access. For example, a cloud access key might allow listing buckets or reading objects; a GitHub token might allow accessing private repositories or modifying code. The more sensitive the access, the higher the severity.
Start here: a reading path
Open the pathClear reports in order, easiest first.
-
1
Personal Access Token Disclosure in Asana Desktop ApplicationBeginner
Likely a development artifact containing a secret was included in the production build of the Electron application.
-
2
How I gained commit access to Homebrew in 30 minutesBeginner
A GitHub API token with write access to core Homebrew repositories was exposed in the environment variables of a publicly accessible Jenkins instance. An attacker could use this token to commit malicious changes to Homebrew formulae, potentially compromising users who install or update packages.
-
3
Hardcoded Secrets Strike Again: How a Telegram Bot Token ExposedBeginner
The developer included the full bot token, including the secret part, in client-side code when only the public bot ID was needed for the Telegram Login Widget.
-
4
The Debugging File Nobody Removed Before Shipping: Secrets ExposeBeginner
The production build pipeline deployed source map files publicly, and the frontend source contained a hardcoded third-party API key that was not scoped to be safe for public exposure.
-
5
Tally Ira’s :- Hardcoded Production SecretsBeginner
Likely the build process bundled a plaintext .env configuration file into the Flutter asset directory instead of injecting secrets at compile time or keeping them server-side.
-
6
We Hacked Multi-Billion $ Companies in 30 Minutes with a VSCode ExtensionBeginner
Likely the marketplace's weak verification allowed a copycat extension with a similar name and a verified publisher status obtained by simply registering a similar domain, and the extension's code was not reviewed for malicious behaviour.
-
7
# Critical Payment Credential Exposure in ISP JavaScript BundleBeginner
Likely, the build process bundled server-side secrets into client-side JavaScript, violating the trust boundary between server and client.
-
8
Survey of popular Node.js packages reveals credential leaksBeginner
Likely, credentials were leaked because developers included sensitive files (such as .npmrc, config.gypi, logs, or dotfiles) in published packages or public repositories, and npm sometimes exposed credentials to child processes.
Guides and techniques
View allThe best explainers, cheat sheets and technique posts on Leaked secrets, from around the web.
-
Code to Cloud Attacks: From Github PAT to Cloud Control PlaneExplains how a leaked GitHub personal access token can be abused to pivot into cloud control planes and how to defend against it.
Technique wiz.io
-
CI/CD SECRETS EXTRACTION, TIPS AND TRICKSSynacktiv details practical methods for extracting secrets from CI/CD pipelines and runners during engagements.
Technique synacktiv.com
-
A new type of long-lived key on AWS: Bedrock API keysWiz examines AWS Bedrock API keys, a new long-lived credential type, and the risks they introduce.
Explainer wiz.io
-
From Exposure to Lockdown: How AWS Neutralizes Compromised IAM Credentials through Managed PoliciesExplains how AWS managed policies can contain leaked IAM credentials and how defenders can detect exposure early.
Methodology unit42.paloaltonetworks.com
-
Lean and Mean: How We Fine-Tuned a Small Language Model for Secret Detection in CodeWiz describes fine tuning a small language model to detect hardcoded secrets in source code.
wiz.io
Highest paid
View allThe biggest public bounties for Leaked secrets.
-
Github access token exposureCritical Shopify HackerOne
$50,000 -
Little bug, Big impact. 25k bountyWrite-up
$25,000 -
Tools usedWrite-up
$16,000 -
One Token to leak them all : The story of a $8000 NPM_TOKENGoogle Write-up
$8,000 -
Arbitrary File Reading on Uber SSL VPNHigh Uber HackerOne
$6,500 -
Asana Desktop Application Includes Personal Access TokenCritical Asana Bugcrowd
$6,100 -
$6,100 -
How I got my first big bounty payout with TeslaTesla Write-up
$5,000
Newest reports
All 490Most recently disclosed.
-
-
-
-
-
-
Windows eSCL Scanner Elevation of Privilege Vulnerability (CVE-2026-112801)High Microsoft Advisory
-
The First Run Found a Live KeyWrite-up
-
-
-
New Leaked secrets reports by email
Follow Leaked secrets and get each week's new disclosures in one short email.