Skip to content
Info disclosure Disclosed report Beginner

Firebase credentials leak

Firebase configuration details were left in HTML comments on a public page, and the previous fix did not remove them. An attacker could read these credentials and use them to access the Firebase project without authorisation.

jimmisimon Follow

Originally disclosed on HackerOne

  • Fixed in 2 months
  • Disclosed after 3 months

Summary:

This report is regarding the fix of #1351329. The fix is not patched fully, comments are visible to anyone and an attacker can utilize this for further attacks.

Steps To Reproduce:

go to : view-source:https://mpulse.mtn.ng/ search for 'Initialize Firebase'

as you can see the firebase details are commented.

Supporting Material/References:

POC attached

Impact

Unauthorized access to firebase

The original report as published on HackerOne, by jimmisimon. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the previous fix only hid the Firebase details from the rendered page but left them in an HTML comment in the source.

Impact

An attacker could gain unauthorised access to the Firebase project, though the report does not show what data or actions that access allows.

What the attacker needed

None

The fix

The Firebase details should not be left in client-side comments, and the previous fix needs completing.

How it was found

  1. Open the page source of the target site.
  2. Search the source for the Firebase initialisation text.
  3. Observe the Firebase details inside an HTML comment.

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 report has not been written yet. The Original tab links to the source.

When a website uses a service like Firebase, it needs some configuration values to connect. Here those values were left inside an HTML comment, which anyone can see by viewing the page source. The reporter says this gives unauthorised access to the Firebase project.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from MTN Group

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.