Firebase Domain Front - Hiding C2 as App traffic
Last updated
Last updated
We often see that large organization use firebase for hosting their applications and database. Firebase has a lot of features such as real-time database, hosting, cloud functions, hosting etc. Today we are going to talk about firebase hosting and cloud functions which are used by a lot of mobile applications these days. In our recent project, we were able to hide ourselves as a legit mobile traffic and bypass a lot of traffic filters
Firebase allows an operator to write an applications in Node JS and deploy it using its hosting feature.
Once you hit the above command you'll be presented with many options. See the following screenshot for responses to the options
Again you'll be presented with many options. See the following screenshot for the response to the options
Since you are already in the functions folder after saving the npm packages. Lets edit the index.js file in this folder.
Go to the parent folder and edit firebase.json
Lets start the deployment of our firebase project
Modify the plan of project from free plan to Pay as you go plan
Now lets try the deployment again.
Lets check what's hosted on https://firebase.redteam.cafe/api/index.html
Let's check if our app works fine
Hint: Try to find domains whose CNAME ends with *.web.app
UPDATE (4/5/2021) : Vincent Yiu created a list for domain fronts in the following github repo
So lets start by selecting a app hosted using firebase. In the following case we'll take / as our selected app.
Lets see if we are able to do Domain Front against a test domain /
Source code can be downloaded from my github repository
,
Twitter: