Skip to content

Reading list

Learn Leaked secrets from real reports

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

12 reports, easiest first.

  1. Personal Access Token Disclosure in Asana Desktop Application

    Asana Beginner $6,100

    The Asana desktop app for Mac exposed a personal access token, rated P1 and awarded a bounty.

    The Asana desktop app for Mac accidentally included a personal access token in its files, exposing sensitive data.

    The lesson. 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 minutes

    Homebrew Beginner

    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.

    A GitHub token is like a password that lets a program act on your behalf. Here, that token was left visible on a public Jenkins server, so anyone could use it to push code to Homebrew's repositories. This could let an attacker add harmful code to the software people install.

  3. Hardcoded Secrets Strike Again: How a Telegram Bot Token Exposed

    Beginner

    A Telegram Bot API token was hardcoded in client-side JavaScript, giving full control of the official customer support bot. An attacker could read user conversations containing personal data and send messages impersonating support staff.

    A secret key for a Telegram bot was left in the website's code that anyone can see. This let anyone take over the bot, read private chats, and send fake messages to users.

    The lesson. 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 Expose

    Beginner

    A production source map was publicly accessible, allowing full reconstruction of the frontend source code. That source contained a hardcoded third-party monitoring API key with account-level read access, which the reporter confirmed was live via a read-only call.

    When developers build a website, they often compress the code to make it smaller. A source map is a helper file that lets developers see the original, readable code again. If that helper file is left on the public server, anyone can download it and read the original code, including any secrets the developers accidentally left inside.

    The lesson. 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. P0 — Key to The Kingdom: How I Found a Gift Card Creation API Key on GitHub & What Happened Next

    Beginner

    A third-party gift card service's API key was publicly exposed in a GitHub repository, allowing anyone to create unlimited gift cards without authentication. The researcher confirmed the key worked by generating a $10 gift card and redeeming it on the company's live website.

    An API key is like a password that lets software talk to another service. Here, a key for creating gift cards was left in a public code repository on GitHub, so anyone could find it and use it to make free gift cards. The researcher tested it and confirmed the gift cards could be used on the real website.

    The lesson. Likely a developer accidentally committed a live API key to a public GitHub repository, and the key had no restrictions such as IP allowlisting or rate limiting.

  6. Infosys leaked Full Admin Access AWS keys on PyPi for over a year

    Beginner

    An internal Infosys package published to PyPI contained hardcoded AWS access and secret keys with AdministratorAccess permissions. An attacker could use these keys to access an S3 bucket that appeared to contain COVID patient data and to perform any action in the AWS account.

    A company accidentally uploaded a software package to a public repository. Inside that package were secret login details for their cloud account, which gave full control over everything in that account. Anyone who found the package could have used those details to access sensitive data.

    The lesson. Likely, developers were issued long-lived AWS IAM user keys with full administrative permissions and stored them in plaintext in source code that was accidentally published.

  7. How a Simple Login Gave Me $4,000 After I Found Their Entire 760 GB+ PII Exposed!

    Beginner

    The dashboard page served hardcoded AWS IAM credentials in client-side JavaScript to unauthenticated visitors. An attacker could use these keys to read, write, and delete objects in a production S3 bucket containing over 760 GB of personal data.

    A web page's code can accidentally include secret passwords for cloud services. Here, the dashboard page gave out AWS keys to anyone who visited it, even without logging in. Those keys allowed full access to a storage bucket holding sensitive personal information.

    The lesson. Likely, the developers embedded long-lived AWS IAM credentials directly in frontend JavaScript instead of using a secure backend service or temporary tokens.

  8. Tally Ira’s :- Hardcoded Production Secrets

    Beginner

    The Android app shipped a plaintext .env file inside its Flutter assets containing production API keys for four backend services. Anyone who downloaded the APK could extract these keys and use them to call the backends, including querying quota for any license serial and triggering consent OTPs for arbitrary TallyNet IDs.

    Mobile apps are packages that anyone can download and unpack. This app included a configuration file with secret passwords (API keys) that are supposed to let only the app talk to the company's servers. Because the file was not hidden or encrypted, anyone could read the keys and pretend to be the app.

    The lesson. 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.

  9. # Critical Payment Credential Exposure in ISP JavaScript Bundle

    Beginner

    A client-side JavaScript bundle exposed payment gateway credentials, a JWT with elevated privileges, and the JWT signing key. An attacker could extract these secrets and forge administrative tokens to potentially process fraudulent transactions.

    A website's JavaScript file, which runs in your browser, accidentally contained secret passwords and keys for payment systems. Anyone could download this file and see the secrets, then use them to pretend to be an administrator and possibly steal money.

    The lesson. Likely, the build process bundled server-side secrets into client-side JavaScript, violating the trust boundary between server and client.

  10. We Hacked Multi-Billion $ Companies in 30 Minutes with a VSCode Extension

    Beginner

    The authors created a malicious Visual Studio Code extension that impersonated a popular theme and exfiltrated source code and host information to a remote server. They published it on the marketplace and quickly gained victims, including employees at large companies.

    A Visual Studio Code extension is a small add-on that changes how the code editor works. The authors made a fake extension that looked like a popular theme but secretly sent the user's code to their own server. This shows that anyone can publish an extension and it can do harmful things once installed.

    The lesson. 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.

  11. How I Found an Exposed Google Maps API Key on a Global Brand’s Checkout Page

    Beginner

    An unrestricted Google Maps API key was exposed in the server-rendered HTML of a checkout page. An attacker could use it to call the Places API, exhaust the free quota, incur billing charges, and learn the internal GCP project ID from error responses.

    A Google Maps API key is like a password that lets a website use Google's mapping services. If that key is visible in the page source and not locked down to specific websites or services, anyone can copy it and make requests on the owner's account, potentially costing them money.

    The lesson. Likely the Google Cloud API key was created without HTTP referrer or API scope restrictions, so it works from any origin and for any enabled API.

  12. Survey of popular Node.js packages reveals credential leaks

    Beginner

    The author found that many popular Node.js packages had leaked credentials (npm passwords/tokens, GitHub tokens/passwords) through files like config.gypi, logs, and dotfiles. An attacker with these credentials could publish malicious versions of packages or push to repositories, potentially compromising many dependent projects.

    This report is about developers accidentally publishing secret passwords or access tokens (like keys) in public code packages. Because these packages are used by many other projects, an attacker who finds the secrets could take over the package and insert harmful code. The author scanned public sources and found many such leaks, showing that even experienced developers make this mistake.

    The lesson. 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.