Skip to content
Info disclosure Write-up Beginner

Never Underestimate Any API Key Leak. This is why I Got a Hall of Fame from “Your Dost”

A Firebase API key was exposed in the production environment, allowing unauthorised access to read, write, or modify database records. The author demonstrated uploading a file to the Firebase database using the exposed key.

hiddendom Follow

Published on hiddendom.medium.com

No exploits. No brute force.

Gokuleswaran B, on hiddendom.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

Likely the Firebase API key was exposed in client-side code without proper restrictions, allowing unauthorised database access.

Impact

The exposed Firebase API key allowed the author to access and modify database records, potentially enabling data manipulation and unauthorised access.

What the attacker needed

None

The fix

The vulnerability was fixed, as confirmed by the CISO team.

How it was found

  1. Find all domains and subdomains using amass.
  2. Resolve live subdomains with httpx.
  3. Run Nuclei to scan for vulnerabilities.
  4. Nuclei reported an API key leak.
  5. Visit the target URL and view the page source code.
  6. Search for keywords like 'apikey', 'username', 'password' and find the Firebase API key.

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.

An API key is like a password that lets programs talk to a service. Here, the key for a Firebase database was left visible in the website's code, so anyone could use it to access and change data. This is like leaving your house key under the doormat.

What is Info disclosure?

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

More by hiddendom

View all

2 more disclosed reports, best first.

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.