Skip to content
Misconfiguration Write-up Beginner

Critical misconfiguration in Firebase-Bug bounty

A Firebase database had security rules allowing public read and write access. An attacker could read and write data, including a contact form file containing over 400 email addresses, phone numbers, addresses, and names.

facu.tha Follow

Published on medium.com

In my latest post, I shared how I escalated a Local File Intrusion to Remote Code Execution, If you haven’t read it yet, go ahead and take a look!

Facundo Fernandez, 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

Impact

An attacker could read and write the entire database, leading to exposure of over 400 email addresses, phone numbers, addresses, and names.

What the attacker needed

Firebase database with open read/write rules; Knowledge of the database URL

How it was found

  1. Gather subdomains and old domains using Subfinder and Waybackurls.
  2. Run waybackurls on the target domain and pipe to httpx to see status codes.
  3. Identify interesting JavaScript files from the results.
  4. Find a disclosure of secret information in those files.
  5. Use a public exploit tool to write data to the Firebase database.
  6. Brute-force potential .json files and find contactForm.json containing personal data.

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 database service often used by mobile and web apps. If its security rules are set to allow anyone to read and write, then anyone can access or change the data. Here, the rules were open, so the attacker could view and modify the database, including personal information from a contact form.

What is Misconfiguration?

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

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.