Skip to content
Misconfiguration Disclosed report Beginner

open Firebase Database: msdict-dev.firebaseio.com

The Firebase Realtime Database used by an Android dictionary app was publicly accessible without authentication, returning null instead of a permission error. Anyone could insert data without credentials.

kickino Follow

Originally disclosed on HackerOne

Medium 6.1 View original
  • Fixed in 17 hours
  • Disclosed after 2 months

Summary:

publicly available Firebase Database (msdict-dev.firebaseio.com)

Steps To Reproduce:

Version: Oxford Dictionary of English Free_v11.1.511 in res/values/strings.xml

<string name="firebase_database_url">https://msdict-dev.firebaseio.com</string>

Accessing your Firebase Database via https://msdict-dev.firebaseio.com/.json returns null instead of the usual { "error" : "Permission denied" }

Supporting Material/References:

https://medium.com/@danangtriatmaja/firebase-database-takover-b7929bbb62e1 describes how a firebase database can be taken over with similar conditions.

Impact

The above application doesn’t need any acces_token to insert data to the firebase database it’s completely open and anybody can access it without any access credentials.

There are guidelines available by Firebase to resolve the insecurities and misconfiguration, please follow this link: https://firebase.google.com/docs/database/security/resolve-insecurities

The original report as published on HackerOne, by kickino. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

The target is the Android application com.mobisystems.msdict.embedded.wireless.oxford.dictionaryofenglish, the Oxford Dictionary of English Free app published by MobiSystems. Like many mobile apps, it uses Firebase Realtime Database as a backend, and the database URL is shipped inside the application package itself.

A Firebase Realtime Database is normally protected by security rules. When a client requests a path it is not allowed to read, the server answers with a permission error rather than data. The report uses that expected behaviour as the baseline for comparison.

Setup

The researcher worked against app version Oxford Dictionary of English Free_v11.1.511. No accounts, roles or special tooling are described: the only precondition is the ability to obtain the APK and read its resources, plus network access to the Firebase host.

The database endpoint is declared as a string resource in res/values/strings.xml:

XML
<string name="firebase_database_url">https://msdict-dev.firebaseio.com</string>

That entry gives the host msdict-dev.firebaseio.com, which is the Firebase Realtime Database instance the app talks to.

Finding it

The researcher inspected the decompiled or unpacked resources of the app and found the firebase_database_url string pointing at msdict-dev.firebaseio.com. Because the URL is embedded in the client, anyone who downloads the app can extract it, so the database host is effectively public knowledge.

The next step was to check whether the database enforces access control. A properly configured Realtime Database rejects unauthenticated reads with a permission error. The researcher requested the root of the database as JSON and observed that this did not happen.

Exploitation

Step 1: Request the database root as JSON

The researcher accessed the database root by appending .json to the host:

HTTP
https://msdict-dev.firebaseio.com/.json

The .json suffix is the REST interface of the Firebase Realtime Database: it returns the contents of the requested path serialised as JSON. Requesting /.json asks for the whole database.

Step 2: Compare the response with the expected denial

Instead of the usual permission error, the response was null. The report contrasts this explicitly with the expected answer:

JSON
{ "error" : "Permission denied" }

A null body was returned instead of the permission error, which the report treats as evidence that the database is open. A denied request would have produced the error object above. The absence of that error is the evidence that the database is open.

Step 3: Confirm write access

The report states that the application does not need an access_token to insert data into the Firebase database, that the database is completely open, and that anybody can access it without any access credentials. The report states that the application does not need an access_token to insert data and that anybody can access the database without credentials.

Root cause

The Firebase Realtime Database instance msdict-dev.firebaseio.com has no effective security rules restricting reads or writes. Firebase only returns Permission denied when rules deny the operation; returning null for an unauthenticated /.json request shows that the read was allowed. The report frames this as a misconfiguration rather than a flaw in the app's own code: the client is doing what it is designed to do, but the backend accepts requests from anyone who knows the URL, and the URL ships inside the APK.

Impact

Because no access token is required, anybody who extracts the database URL from the app can read from and insert data into the database without any credentials. The report does not describe what data the production database holds, so the practical sensitivity of the exposed content is not established in the text. The researcher rated the issue medium (CVSS 6.1) under improper access control.

Fix

The report points to Firebase's own guidance on resolving insecure rules, at https://firebase.google.com/docs/database/security/resolve-insecurities, as the remedy. In practice that means defining security rules on the database so that unauthenticated requests are rejected and only authorised clients can read or write. The report does not state which change, if any, was applied.

Variants to test

  1. Request other paths under the same host, for example a guessed collection name followed by .json, and look for data instead of a permission error.
  2. Try a write to a path with a simple JSON body and check whether the server accepts it rather than returning Permission denied.
  3. Extract firebase_database_url (and similar Firebase configuration strings) from other APKs and repeat the /.json check against each host.

A positive result in each case is a response that returns data or accepts a write instead of the { "error" : "Permission denied" } object.

Hunting notes

This class of bug hides in mobile app resources: strings files, configuration files and bundled SDK settings frequently contain backend URLs that the developer assumed would stay private. During recon, unpacking an APK and reading its string resources is a quick signal. The confirmation test is cheap: request the root with .json and compare the response with the expected permission error. The researcher showed the difference between null and the denial object, which makes the misconfiguration clear.

References

The report cites a Medium article by Danang Triatmaja, https://medium.com/@danangtriatmaja/firebase-database-takover-b7929bbb62e1, describing how a Firebase database can be taken over under similar conditions, and the Firebase documentation page on resolving insecure rules linked above.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

A free Android dictionary app, the Oxford Dictionary of English Free app made by MobiSystems, keeps its data in a cloud database run by Google's Firebase service. The address of that database is written inside the app itself, so anyone who downloads the app can find it. Normally a Firebase database has a set of rules that decide who may read and who may write. When someone without permission asks for data, the database answers with an error saying permission is denied. In this case it did not. The researcher asked the database for its root and got null back instead of the error, which showed that the door was unlocked. The report also states that anyone can insert data into the database without any credentials. The researcher rated the issue medium severity (CVSS 6.1) under improper access control, and the report was disclosed on 20 January 2020.

Context

The app

The target is an Android application with the package name com.mobisystems.msdict.embedded.wireless.oxford.dictionaryofenglish. A package name is the unique identifier Android uses for an app, a bit like a postal address that no other app on the same phone can share. This one belongs to the Oxford Dictionary of English Free app published by MobiSystems.

Like many mobile apps, it does not carry all of its content on the phone. It talks to a server in the cloud to fetch or store data. That server is a Firebase Realtime Database, a database service from Google that apps can read from and write to over the internet. Think of it as a shared online filing cabinet: the app sends a request, the service looks up the right drawer and returns what is inside.

Where the address comes from

The address of that filing cabinet is not a secret kept on a server. It is shipped inside the application package itself, the file you install on the phone. Anyone who downloads the app therefore holds the address too.

What should happen

A Firebase Realtime Database is normally protected by security rules. Security rules are a list of conditions the database checks on every request, like a bouncer at a door who checks your name against a guest list before letting you in. When a client asks for a path it is not allowed to read, the server answers with a permission error rather than data. The report uses that expected behaviour as the baseline, the normal result to compare against.

Setup

What the researcher needed

The researcher worked against app version Oxford Dictionary of English Free_v11.1.511. No accounts, roles or special tooling are described. The only preconditions are the ability to obtain the app package and read the files inside it, plus ordinary network access to the Firebase host. In other words, you do not need to be a user of the app, you do not need to log in, and you do not need any password.

The address in the app's files

The database endpoint is declared as a string resource in res/values/strings.xml. Android apps keep their user-facing text and configuration values in files like this, so that the same value can be reused throughout the app and translated or changed in one place. Here is the entry:

XML
<string name="firebase_database_url">https://msdict-dev.firebaseio.com</string>

Line by line:

  • <string ...> opens a string resource, a named piece of text stored for the app to use.
  • name="firebase_database_url" is the label the app's code uses to look this value up. The name itself tells you what it is for: the URL of the Firebase database.
  • https://msdict-dev.firebaseio.com is the value. https means the connection is encrypted in transit, so someone watching the network cannot read it. msdict-dev.firebaseio.com is the host, the name of the machine on the internet that runs the database. The report does not say what data the database holds.
  • </string> closes the entry.

That entry gives the host msdict-dev.firebaseio.com, which is the Firebase Realtime Database instance the app talks to.

Finding it

Reading the app's insides

The researcher inspected the decompiled or unpacked resources of the app. An Android app package is essentially a zip archive: unpacking it reveals the files inside, and decompiling turns the compiled code back into something readable. Among those files the researcher found the firebase_database_url string pointing at msdict-dev.firebaseio.com.

Because the URL is embedded in the client, anyone who downloads the app can extract it. A client here means the piece of software on your side that talks to the server, in this case the app on the phone. Anything shipped inside the client should be treated as public, because the user controls the device it runs on. So the database host is effectively public knowledge.

The question to answer

The next step was to check whether the database enforces access control. Access control means the database deciding, request by request, whether the caller is allowed to do what it is asking. A properly configured Realtime Database rejects unauthenticated reads with a permission error. Unauthenticated means the request carries no proof of who is making it, no login, no key, nothing. The researcher requested the root of the database as JSON and observed that this did not happen.

Exploitation

Step 1: Request the database root as JSON

The researcher accessed the database root by appending .json to the host:

HTTP
https://msdict-dev.firebaseio.com/.json

What this line is: a single web address, the kind you could paste into a browser's address bar.

  • https:// is the encrypted web protocol.
  • msdict-dev.firebaseio.com is the database host found in the app.
  • /.json is the path being requested. The slash means the root, the very top of the database, the equivalent of asking for the whole filing cabinet rather than one drawer.

The .json suffix is the REST interface of the Firebase Realtime Database. REST is a simple way of talking to a service over ordinary web requests: you name a resource with a URL and the server sends it back. Adding .json tells Firebase to return the contents of the requested path serialised as JSON. JSON is a plain text format for structured data, made of names and values in curly braces, easy for both humans and programs to read. Requesting /.json therefore asks for the whole database in one go.

Step 2: Compare the response with the expected denial

Instead of the usual permission error, the response was null. In JSON, null is a special value meaning "nothing here". The report contrasts this explicitly with the expected answer:

JSON
{ "error" : "Permission denied" }

What this snippet is: the shape of the reply a correctly locked database would have sent.

  • The outer curly braces { } mark a JSON object, a collection of named values.
  • "error" is the name of the field.
  • "Permission denied" is its value, a message saying the request was refused.

A null body was returned instead of the permission error, which the report treats as evidence that the database is open. A denied request would have produced the error object above. The absence of that error is the evidence that the database is open. The difference between "I looked and the shelf was empty" and "I was not allowed to look" is the whole finding.

Step 3: Confirm write access

The report states that the application does not need an access_token to insert data into the Firebase database, that the database is completely open, and that anybody can access it without any access credentials. An access token is a short piece of text, issued after you prove who you are, that you attach to requests so the server can recognise you, much like a wristband at an event. No wristband is needed here. The report states that the application does not need an access_token to insert data, so writes are possible without credentials too.

Root cause

The Firebase Realtime Database instance msdict-dev.firebaseio.com has no effective security rules restricting reads or writes. Firebase only returns Permission denied when rules deny the operation; returning null for an unauthenticated /.json request shows that the read was allowed. The report frames this as a misconfiguration rather than a flaw in the app's own code: the client is doing what it is designed to do, but the backend accepts requests from anyone who knows the URL, and the URL ships inside the app package. The backend is the server side, the part the developer controls and the user never sees.

Impact

Because no access token is required, anybody who extracts the database URL from the app can read from and insert data into the database without any credentials. The report does not describe what data the production database holds, so the practical sensitivity of the exposed content is not established in the text. The researcher rated the issue medium (CVSS 6.1) under improper access control. CVSS is a standard scoring system for the severity of a security issue, where a higher number means more serious.

Fix

The report points to Firebase's own guidance on resolving insecure rules, at https://firebase.google.com/docs/database/security/resolve-insecurities, as the remedy. In practice that means defining security rules on the database so that unauthenticated requests are rejected and only authorised clients can read or write.

Variants to test

  1. Request other paths under the same host, for example a guessed collection name followed by .json, and look for data instead of a permission error.
  2. Try a write to a path with a simple JSON body and check whether the server accepts it rather than returning Permission denied.
  3. Extract firebase_database_url (and similar Firebase configuration strings) from other app packages and repeat the /.json check against each host.

A positive result in each case is a response that returns data or accepts a write instead of the { "error" : "Permission denied" } object.

Hunting notes

This class of bug hides in mobile app resources: strings files, configuration files and bundled SDK settings frequently contain backend URLs that the developer assumed would stay private. An SDK is a ready-made kit of code a developer adds to an app, and its settings often travel with the app. During recon, the information-gathering phase before testing, unpacking an app package and reading its string resources is a quick signal. Grepping means searching text for a pattern. The confirmation test is cheap: request the root with .json and compare the response with the expected permission error. The researcher showed the difference between null and the denial object, which makes the misconfiguration clear.

References

The report cites a Medium article by Danang Triatmaja, https://medium.com/@danangtriatmaja/firebase-database-takover-b7929bbb62e1, describing how a Firebase database can be taken over under similar conditions, and the Firebase documentation page on resolving insecure rules linked above.

Glossary

  • Access control: the process of deciding, request by request, whether the caller is allowed to do what it is asking.
  • Access token: a short piece of text issued after you prove who you are, attached to requests so the server can recognise you.
  • Android package: the installable file containing an Android app, including its code and resources.
  • APK: the file format of an Android app package.
  • Backend: the server-side part of a system that users do not see directly.
  • Client: the software on the user's side that talks to a server, here the app on the phone.
  • CVSS: a standard scoring system for the severity of a security issue.
  • Decompile: turn compiled program code back into a more readable form.
  • Endpoint: the address of a specific service or resource on the network.
  • Firebase Realtime Database: a cloud database service from Google that apps read from and write to over the internet.
  • Grepping: searching text for a pattern.
  • Host: the name of a machine on the internet, such as msdict-dev.firebaseio.com.
  • Improper access control: a weakness where a system does not correctly restrict who may perform an action.
  • JSON: a plain text format for structured data, made of names and values.
  • Misconfiguration: a setting left in an unsafe state, as opposed to a bug in the code itself.
  • null: a JSON value meaning "nothing here".
  • Package name: the unique identifier Android uses for an app.
  • Path: the part of a URL after the host that names which resource is requested; / means the root.
  • Permission error: the reply a server sends when it refuses a request because the caller is not allowed.
  • Recon: the information-gathering phase before testing.
  • REST: a simple way of talking to a service over ordinary web requests, naming resources with URLs.
  • Root: the very top of a database or file tree, containing everything below it.
  • SDK: a ready-made kit of code a developer adds to an app.
  • Security rules: conditions a database checks on every request to decide whether to allow it.
  • Serialise: convert data into a text format so it can be sent over the network.
  • String resource: a named piece of text stored in an app's resource files.
  • Unauthenticated: a request that carries no proof of who is making it.
  • URL: a web address naming a resource on the internet.

More from MobiSystems Ltd.

View all

The newest disclosed reports for this program.

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.