Skip to content
Info disclosure Write-up Beginner

When an Android App Whispers Secrets: How I Found Plaintext Cred

The Android app logged user emails, passwords, and session tokens in plaintext to the system log. An attacker with temporary device access or malware could read these logs to steal credentials.

Rutvik Kalkumbe Follow

Published on medium.com

As a bug bounty hunter and mobile application security tester, I’ve learned one simple truth: Not every vulnerability requires a zero-day exploit or hours of reverse engineering.

Rutvik Kalkumbe, 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 left debug logging statements that print sensitive data in the production build instead of removing or gating them.

Impact

An attacker with temporary access to the device or malware on older or misconfigured devices could read plaintext credentials and tokens from logs, leading to account compromise.

What the attacker needed

Android device or emulator; USB debugging enabled; ADB installed; Temporary device access

The fix

Developers should never log sensitive information, use conditional logging only in debug builds, sanitise logged objects, and strip log calls from release builds.

How it was found

  1. Install and launch the app.
  2. Enter dummy login credentials on the login screen.
  3. Run adb logcat with a filter for password, token, email, or login.
  4. Observe the logs containing sensitive data.

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.

Android apps can write debug messages to a system log called logcat. If an app logs your password or login token there, anyone who can read that log (for example, someone with brief access to your unlocked phone and a computer) can see your secrets. The app should never write such sensitive information to logs.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Rutvik Kalkumbe

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.