Top Tweets for #FirebaseIO
Great Tip by @DhabaleshwarD ✌️💥
I came across a very interesting vulnerability that many people overlook during mobile penetration testing: "Misconfigured Firebase DB Takeover."
Firebase is a cloud-based NoSQL Database that stores and syncs data in real time among users. Sometimes, developers fail to configure it correctly according to best practices. This oversight can lead to misconfigurations. I've encountered and exploited numerous instances of these vulnerabilities in my pentesting experiences. Today, I'll explain how you can do it too. Let's dive into the steps to test it out.
PoC Steps:
1- First, decompile the apk file using apktool.
apktool d example.apk
2- Go inside the decompiled folder and use the grep command to search for "https://t.co/G74etQn9Zn" keyword:
grep -iR firebaseio
(You'll find the firebase url if the application is using any. If you feel this step is complicated, then you can use MobSF and it will directly give you the firebase url. Also, note most of the time you'll find the firebase url in "res/values/strings.xml" file.)
3- Now, I found the firebase url, let's say:
https://example-db .firebaseio .com/
4- The next step would be, to paste this URL in the browser along with a "/.json" at the end, which will look something like this:
https://example-db.firebaseio .com/.json
(Appending /.json at the end of a Firebase URL means that you're accessing data in JSON format from Firebase's Realtime Database.)
5- Now, let's take three scenarios:
5.1- If you are able to access the information inside it, that would mean, the database info is public. Which is a High severity vulnerability you can directly report. (But I bet this isn't something you'll generally find)
5.2- If you don't see any info, but simply "null", that means we can proceed with our attack.
5.3- If you see "Permission Denied", that means, the database is properly configured and you can't perform the takeover attack.
6- We will focus on the second scenario, where you see a "null" option. It generally indicates that you have read access to the Firebase Realtime Database but there is no data stored at the root level.
7- Now, for performing the Takeover attack. I created a simple python script, to help me out. Save the code below to a ".py" file and execute it. [It will work only if write perm. is enabled]
import requests
url = "https://example-db. https://t.co/pD4sZstIxV"
data = {"Exploit": "Successfull", "DATABASE TAKEOVER BY": "Dhabal"}
try:
response = requests.put(url, json=data)
print("Database takeover successful.") if response.status_code == 200 else print(f"Failed: {response.status_code}")
except requests.RequestException as e:
print(f"Error: {e}")
(If you feel this is complicated, then you can use simple curl command to do the same thing, without the need for a python script)
8- After that, visit the url "https://example-db. https://t.co/pD4sZstIxV" and you should see the data we added.
I hope you learnt something valuable today!
#bugbounty #bugbountytips #bugbountytip #hackerone #bugcrowd #infosec #cybersecurity #pentesting #redteam #informationsecurity #securitycipher #technology #coding #code #recon #ai #llm #owasp
Last Seen Hashtags on Sotwe
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
240.1M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.4M followers

Donald J. Trump 
@realdonaldtrump
111.8M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.2M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers
