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