Pull unauthenticated Firebase reads straight from a decompiled Android APK
Decompile the target APK with jadx (or just unzip and strings) and grep for firebaseio.com or firebasedatabase.app. Apps often hardcode the database URL even though access should be gated by Firebase Auth rules.
Once you have the host, request the root with the .json suffix:
GET /.json HTTP/1.1
Host: <project-id>.firebaseio.comThe assumption developers get wrong is that an obscure or unlisted database path is enough protection, when Firebase's real access control lives entirely in the server-side Security Rules. If rules are left at the default read: true (or a rule only checks auth != null while the app also ships an anonymous-auth key), the .json request returns live user or business data with no token at all.
Proof of real impact is the response body containing actual records (user profiles, orders, tokens), not just an empty {} or a permission_denied error, which just means rules are enforced. Also try nested paths like /users.json or /orders.json directly, since root may be locked while a child node is open. Only test against your own test account's project or an in-scope mobile target.
Follow #apk, #firebase, #misconfiguration or #mobile for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.