,
Firebase is everywhere.
Startups love it. Developers trust it. Products scale on it quickly.
Firebase makes it easy to build apps with fast authentication, databases, storage, and hosting all in one place. But that convenience often creates a false sense of security.
At Orasec, Firebase misconfigurations are one of the most common causes of data exposure we see during security assessments.
This blog breaks down how Firebase works, where teams make mistakes, and how attackers actually abuse those mistakes.
What Is Firebase?
Firebase is a backend platform by Google. It’s commonly used for:
- Mobile apps
- Web applications
- APIs
- Real-time features
Firebase services often include:
- Firestore / Realtime Database
- Firebase Authentication
- Cloud Storage
- Cloud Functions
Firebase is powerful, but security is mostly your responsibility, not Google’s.
Why Firebase Data Gets Exposed So Often
Firebase itself is not insecure.
Most breaches happen because of misconfigured security rules or over-permissive access.
Here are the most common Firebase security mistakes Orasec encounters.
1. Public Database Rules (allow read, write: true)
This is the most dangerous mistake.
Many apps ship with rules like:
allow read, write: if true;
This means:
- Anyone can read the data
- Anyone can write to the database
- No authentication required
Attackers don’t need credentials. They just need the database URL.
Once discovered, the entire dataset is exposed.
2. Authentication Exists, But Rules Don’t Enforce It
Some apps use Firebase Authentication correctly, but forget to link the auth to database rules.
Result:
- Users log in
- But database rules don’t check
request.auth
Attackers can still access data directly, bypassing the app entirely.
Authentication without authorization is meaningless.
3. Over-Broad Access Rules
Another common issue is rules that allow users to access more data than they should.
For example:
- Any authenticated user can read all user profiles
- Any user can write to admin-only collections
- Client-side logic controls access instead of server rules
This leads to IDOR-style attacks, where users can fetch or modify other users’ data.
4. Public Firebase Storage Buckets
Firebase Storage is often overlooked.
We frequently see:
- User uploads publicly accessible
- Sensitive documents stored without access controls
- Profile images, IDs, invoices, or backups exposed
Once a file URL is known, attackers can download it directly.
5. Exposed API Keys and Config Files
Firebase config values are often pushed to public GitHub repositories.
While Firebase API keys are not secrets by themselves, combined with weak rules, they become dangerous.
Attackers use exposed configs to:
- Identify Firebase projects
- Query databases directly
- Automate data scraping
This is especially common in mobile apps and frontend repositories.
How Attackers Exploit Firebase Misconfigurations
Firebase attacks are rarely complex.
A typical attack looks like this:
- Attacker scans for Firebase project URLs
- Tests database rules
- Finds public or weak access
- Dumps the data
- Automates scraping or sells data
This can happen in minutes.
Most companies only find out after the data is already leaked.
What Kind of Data Gets Exposed?
Firebase databases often store:
- User profiles
- Emails and phone numbers
- Authentication metadata
- Chat messages
- Location data
- Payment references
- Internal logs
For fintech, healthcare, SaaS, and consumer apps, this is critical data.
Real-World Impact
Firebase leaks have led to:
- Massive user data breaches
- Regulatory investigations
- App store takedowns
- Customer trust loss
- Legal consequences
Many incidents started with a single misconfigured rule.
How to Secure Firebase Properly
Firebase security doesn’t require advanced tools; it requires discipline.
Here are the basics every team should follow.
Lock Down Database Rules
- Never allow public read/write
- Always check
request.auth - Enforce ownership checks
Rules should reflect who owns the data, not just who is logged in.
Use Least Privilege
- Users should only access their own data
- Admin actions should be separated
- Client apps should never have admin access
Secure Firebase Storage
- Restrict access to authenticated users
- Validate file ownership
- Avoid public file URLs for sensitive data
Monitor and Audit Regularly
- Review rules after every release
- Monitor access patterns
- Alert on unusual activity
Secure Test and Dev Environments
- Never use real user data in testing
- Lock down non-production projects
- Delete unused Firebase projects
How Orasec Helps
Firebase misconfigurations are one of the most common findings in Orasec security assessments.
We help organizations:
- Review Firebase security rules
- Identify exposed databases and storage
- Test real attacker paths
- Detect leaked data on the dark web
- Fix issues before attackers find them
Security isn’t about assuming things are safe; it’s about verifying them continuously.
Final Thoughts
Firebase makes building apps easy.
But security isn’t automatic.
Most Firebase data leaks happen because of simple mistakes, not advanced attacks. And those mistakes are preventable.
If you use Firebase, assume attackers are already looking for misconfigurations.
The only question is whether you find them first.
Visibility, proper rules, and continuous testing make the difference.



