Firebase URL Exploitation: Taking Over Android Databases Like a
An Android app's Firebase database was left with open security rules, so anyone with the database URL could read, write or delete data without logging in. The author shows how appending a JSON endpoint to the URL returns the whole database and allows changes such as adding an admin user.
Free Read
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 left in a default or permissive state, allowing unauthenticated read and write access.
Impact
An attacker could read, write or delete any data in the exposed database, including adding themselves as an admin, though the author warns against deleting data.
What the attacker needed
Knowledge of the Firebase URL; no authentication required
The fix
The database should be fixed by setting Firebase security rules that require authentication for reads and writes, and by not hardcoding the URL or keys in the app.
How it was found
- Analyse the Android app with tools such as apktool or MobSF to find the Firebase URL.
- Append the JSON endpoint to the URL and request it with a browser or curl.
- If the database is open, a JSON dump of the app's data is returned.
- Request a specific path such as users to read user profiles and chats.
- Send a PUT request to a user path to write new data, for example an admin role.
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 cloud database service that apps often use to store user data. If the app's security rules are not set up, the database accepts requests from anyone who knows its web address. The author found such an address inside an Android app and showed that adding a small suffix to the address returns all the stored data.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.