Skip to content
Leaked secrets Write-up Beginner

How I made $1500 dollars using base64 decoder :)

A hardcoded API key in an Android app was base64-encoded and, when decoded, revealed a JSON object containing a username and password. The attacker used these credentials to log into an admin panel and access private company information.

Dilip Follow

Published on medium.com

Bounty$1,500 View original

I got the private invitation and it was my first private invitation without wasting my time, I just fire up the burp suite and start digging into web application for few days and I can’t find nothing :(

Dilip Palani, 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 the application embedded a base64-encoded credential (username and password) in the Android app, which could be trivially decoded.

Impact

The attacker could access an admin panel and view private company information.

What the attacker needed

Android app available for download; Ability to decompile the app

How it was found

  1. Decompile the Android app and search for API keys.
  2. Find a sandbox_customerkey that is longer than a normal Google Maps API key.
  3. Decode the key using a base64 decoder.
  4. Observe a JSON object containing a username and password.
  5. Use the credentials to log into an admin panel and access private information.

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.

The app contained a secret key that was not really secret because it was only hidden by a simple encoding called base64, which anyone can reverse. When the researcher decoded it, they found a username and password for an admin panel. They then used those credentials to log in and see private data.

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.