Skip to content
Info disclosure Write-up Beginner

Android Flaw + Cloud Misconfigs + Account Takeover = Disaster⚡

Hardcoded Firebase API keys and an open Google Cloud Storage bucket URL were found in the Android app's strings.xml. An attacker could use these to access patient medical files, create fake accounts without email verification, and read the entire user database without authentication.

medium.com

Published on medium.com

During a freelance Vulnerability Assessment and Penetration Testing (VAPT) engagement, I was tasked with testing a mobile and cloud application for a healthcare startup.

VETTRIVEL, 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

Impact

An attacker could access protected health information, create unlimited fake accounts, and obtain a complete directory of users and doctors, enabling targeted phishing or identity theft.

What the attacker needed

Access to the Android app; no authentication for storage and database

The fix

The client rotated exposed keys, implemented strict Firebase Security Rules requiring authentication, enforced email verification, and removed sensitive configuration from client-side code.

How it was found

  1. Decompile the Android APK and inspect strings.xml to find hardcoded Firebase API keys and a storage bucket URL.
  2. Use the leaked storage bucket address to list all files via an unauthenticated request.
  3. Download any file directly from the bucket without authentication.
  4. Create a fake user account using the leaked API key through Firebase's sign-up endpoint.
  5. Log in to the web application with the fake account and gain full access to the user dashboard.
  6. Send unauthenticated requests to Firestore collections to retrieve all user, doctor, and patient 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.

The app stored secret keys in a file that anyone can read after downloading the app. Those keys let the tester access cloud storage and a database that had no password protection, exposing private medical records and user details.

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.