“Day 7: API Hacking — How I Stole 5000 OAuth Tokens & Won $300”
An unprotected Firebase database endpoint allowed unauthenticated access to user records including OAuth tokens and bank links. The author used a leaked token to access transaction data, demonstrating account takeover risk.
Published on infosecwriteups.com
Last month, while testing a “secure” fintech app, I discovered an unprotected Firebase database leaking OAuth tokens, bank account links, and transaction histories — all because of one misconfigured API endpoint. The company paid me $300 after I demonstrated how an attacker could drain thousands of accounts.
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 Realtime Database security rules were misconfigured to allow public read access, exposing all user data.
Impact
An attacker could access thousands of user records with valid OAuth tokens, potentially leading to account takeover, unauthorised transfers, and theft of KYC documents.
What the attacker needed
None
How it was found
- Intercept the mobile app's traffic using a proxy tool.
- Identify a request to the Firebase database endpoint.
- Test public access by requesting the database root with no authentication.
- Observe that user records including OAuth tokens are returned.
- Use a leaked OAuth token to authenticate to the API and access transactions.
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.
A Firebase database is a cloud storage service often used by mobile apps. If its security rules are set to allow public read access, anyone can download all the data inside without logging in. Here, that data included login tokens, which are like temporary passwords that let someone act as another user.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.