Skip to content
Misconfiguration Write-up Beginner

How an Android App’s Misconfigured Firebase Database Exposed Sensitive Data

An Android app's Firebase Realtime Database was accessible without authentication, allowing anyone with the database URL to read and potentially modify internal data. The URL was found by decompiling the APK and inspecting resource files.

athultpme Follow

Published on medium.com

Misconfigured Firebase databases are a common issue in mobile apps, and they can quietly expose sensitive data to anyone who knows where to look. In this post, I walk through a real-world case where an Android app’s Firebase Realtime Database was accessible without authentication, allowing read and write access to…

Athultpme, 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 Firebase Realtime Database security rules were configured to allow unauthenticated read and write access.

Impact

Sensitive or internal data could be viewed by anyone with the URL, and attackers may be able to modify or delete entries, potentially expanding the attack surface if secrets were stored.

What the attacker needed

Knowledge of the Firebase database URL

The fix

The text does not state that the issue was fixed; it should be fixed by restricting Firebase rules to authenticated users and roles, and by not storing sensitive configuration in client-accessible data.

How it was found

  1. Decompile or unpack the Android APK.
  2. Inspect resource files such as strings.xml and configuration files.
  3. Find the Firebase database URL referenced in a resource file.
  4. Visit the database URL with .json appended in a browser or via curl.
  5. Observe that the endpoint returns JSON data instead of an access denied error.

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.

Firebase is a backend service that apps use to store data. If its security rules are set to allow anyone to read or write, then anyone who knows the database address can access the data. Here, the address was hidden inside the app's files, so it was easy to find.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.