Skip to content
Misconfiguration Write-up Beginner

A Database With the Front Door Left Open: Misconfigured Firebase

The Firebase Realtime Database behind a fitness app had security rules that allowed anyone to read and write data without logging in. An attacker who extracted the database URL from the public app could read every user's health and fitness records and modify or delete any data.

T4nv1 Follow

Published on medium.com

Serverless backend-as-a-service platforms have shifted an enormous amount of what used to be server-side authorization logic into a declarative rules configuration that lives alongside the database itself rather than in application code a developer necessarily thinks of as “security-critical.” That shift is powerful…

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

The database security rules did not require authentication for read or write at the root level, leaving the rules layer fully permissive.

Impact

Any unauthenticated party could read all users' health and fitness data and inject, modify or delete arbitrary data anywhere in the database.

What the attacker needed

Database URL embedded in public app; no account needed

The fix

The rules were rewritten to require authentication and per-user scoping, and the text says this was done within hours of the report.

How it was found

  1. Decompile the Android app and find the embedded Firebase database URL in its configuration.
  2. Send an unauthenticated request to the database root and observe that data is returned.
  3. Query individual top-level nodes such as health metrics without any credential to confirm the whole tree is exposed.
  4. Send an unauthenticated write to a clearly labelled test node to confirm write access, then delete it.

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.

Apps built on services like Firebase often let the phone talk straight to the database, so the database's own rules are the only thing deciding who can see or change data. Here those rules let anyone in without logging in, so a person who found the database address inside the app could read everyone's health records and change them.

What is Misconfiguration?

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

More by T4nv1

View all

113 more disclosed reports, best first.

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.