Skip to content
Info disclosure Write-up Beginner

Hunting For Bugs In Android App

The DIVA Android app, a deliberately vulnerable training app, stores sensitive data insecurely, logs credentials, hardcodes secrets, and exposes activities and a content provider without proper access control. An attacker with a rooted device or local access could retrieve credentials, API keys, and private notes.

K O M A L Follow

Published on infosecwriteups.com

Damn Insecure Vulnerable App DIVA is a vulnerable App designed to teach about the vulnerabilities found in Android App. This article walks you through discovering some of those vulnerabilities and will be continously updated as I complete more android related challenges.

K O M A L, on infosecwriteups.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 app was intentionally built with insecure practices such as logging sensitive data, storing credentials in plaintext, hardcoding keys, and exporting components without permission checks.

Impact

An attacker with local access or another app on the device could read sensitive credentials, API keys, and private notes; some steps require a rooted device or granted permissions.

What the attacker needed

Rooted Android device or emulator; adb access to the device; the DIVA app installed

The fix

The app should avoid logging sensitive data, store secrets securely, avoid hardcoding keys, and restrict exported components with proper permissions.

How it was found

  1. Extract the DIVA APK and run it on an emulator.
  2. Use adb shell and logcat to view the app's logs and see sensitive information.
  3. Use jadx-gui to review source code and find a hardcoded access key.
  4. Access /data/data to find credentials stored in shared_prefs, databases, and temporary files.
  5. Grant storage permission and save credentials to external storage.
  6. Use adb shell am start to launch exported activities and content query to read the notes provider.

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.

This is a walkthrough of a deliberately insecure Android app used for learning. It shows common mistakes like saving passwords in plain files, printing them to logs, and leaving app parts open to other apps. Someone with access to the phone or another app on it could read those secrets.

What is Info disclosure?

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

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.