Skip to content
Leaked secrets Write-up Beginner

How i win 1100 USD in bug bounty and this change my life in Bolivia

The author decompiled several Android apps and found hardcoded secrets, including a Firebase API key in BuildConfig.kt, GitHub tokens in app.config, and a Notion token with other API keys. These exposed credentials gave access to sensitive services such as a Firebase database and critical fintech workflow tools.

vanpedrazas Follow

Published on medium.com

Since I won my first prize in the Hall of Fame at hackers.bo in 2023–2024 (about $110 or 1500 Bs at that time, although due to the economic situation and inflation in my country it’s probably worth less now), I became passionate about taking bug bounty more seriously. That experience motivated me to join different bug…

Ivan Bernardo Pedrazas Rodriguez, 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, developers hardcoded sensitive credentials such as API keys and tokens directly in the mobile app source and configuration files instead of storing them securely on a backend.

Impact

The exposed keys could give unauthorised access to a Firebase database and to critical services in a fintech's workflow, and the companies paid bounties for the reports.

What the attacker needed

Android device with the target app installed; ADB and jadx-gui tools; Knowledge of Kotlin or Dart helps

How it was found

  1. Make a list of mobile apps already installed on the phone.
  2. Use ADB to extract the app packages.
  3. Decompile the apps with jadx-gui.
  4. Search the decompiled code and configuration files for tokens, API keys, and secrets.
  5. Report the exposed credentials to the affected companies.

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 build a mobile app, they sometimes leave secret passwords or keys inside the app's code. Anyone who downloads the app can unpack it and read those secrets. Here, the author unpacked Android apps and found keys that unlocked databases and other services, which the companies had to pay to learn about.

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.