Skip to content
Misconfiguration Write-up Beginner

No Rules, No Locks — Firebase Misconfiguration and the Borrower

A microfinance lending platform left its Firebase Storage bucket and Firestore database without security rules, so anyone with the public projectId could list, read, create, modify and delete borrower records and uploaded documents. The exposed data included national ID numbers, addresses, GPS coordinates, photos, signatures and loan details for every applicant.

Alvin Ferdiansyah Follow

Published on infosecwriteups.com

Somewhere in this story is a woman who applied for a small loan. She submitted her national ID number, her date of birth, her home address, her GPS coordinates, a photo of her face, a photo of her ID card. and a photo of her house.

Alvin Ferdiansyah, on infosecwriteups.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 team never configured Firebase security rules on the Storage bucket or Firestore database, leaving the default open access in place.

Impact

Anyone could read, alter or delete the personal and financial records of every borrower, though the Realtime Database was correctly locked down and returned 403.

What the attacker needed

None — only the public projectId

How it was found

  1. Fetch the public Firebase init file from the web app to obtain the projectId.
  2. Build the Storage, Firestore and Realtime Database REST endpoints from the projectId.
  3. Request the Storage bucket listing without credentials and download files via the media parameter.
  4. Probe common Firestore collection names and use the HTTP status codes to tell open, secured and missing collections.
  5. Enumerate customer and loan documents by sequential numeric IDs to read borrower records.
  6. Confirm write access by creating a canary document in a test collection, 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.

Firebase is a Google service that gives apps a database and file storage without running their own servers. Each of those services has 'security rules' that decide who may read or write, and by default they are open to everyone. Here the team never set those rules on two of the three services, so anyone who knew the project's public identifier could pull out real people's loan applications and identity documents.

What is Misconfiguration?

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

More by Alvin Ferdiansyah

View all

3 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.