Skip to content
Access control Write-up Beginner

السلام عليكم

Firebase Storage security rules allowed any authenticated user, including a free trial account with no company data, to list and download files belonging to all other customers. This exposed payroll reports, employee personal data, payslips, tax declarations and signed legal documents across every customer on the platform.

minasmith40 Follow

Published on medium.com

الثغرة كانت في إعدادات Firebase Storage — أي � ستخد� عادي � سجل في التطبيق كان يقدر يشوف ويح� ّل � لفات كل الع� لاء الآخرين بدون أي قيود. وهذا يش� ل:

Abdlalicc, 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 Firebase Storage security rules granted read access to any authenticated user without checking that the user belonged to the company that owned the file.

Impact

Every customer on the platform was affected, with payroll reports, employee personal data, payslips, tax declarations and signed legal documents exposed; the browser's 403 for unauthenticated requests did not block the authenticated API access.

What the attacker needed

A free trial account; ability to intercept HTTP traffic

The fix

The vendor updated the Firebase Storage rules so that each authenticated user can only access files within their own company folder, and the same request then returned 403.

How it was found

  1. Intercept the login request and capture the Firebase idToken from the response.
  2. Base64-decode the JWT payload to find the Firebase project ID.
  3. Derive the default storage bucket name from the project ID.
  4. Send a request to the Firebase Storage listing endpoint using the test account token.
  5. Observe that the response returns 200 OK with file metadata for other companies instead of 403.

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 apps use to store files and manage logins. The app's file storage had a rule that only checked whether someone was logged in, not which company they belonged to, so any logged-in user could see every company's files. The browser showed an error because it blocked people who were not logged in at all, which hid the problem from a quick check.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.