git clone https://github.com/iosiro/baserunner.git
npm run build
- Go to http://localhost:3000 in your browser.
The Baserunner interface looks like this:
First, use the configuration textbox to load a Firebase configuration JSON structure from the app you’d like to test. It looks like this:
Then log in as a regular user, either with email and password or with a mobile phone number. When logging in with a mobile phone number, complete the CAPTCHA before submitting your number. You then be prompted for an OTP from your SMS. Enter this without completing the CAPTCHA to finish logging in. Note that you can skip this step to test queries without authentication.
Finally, you can use the query interface to submit queries to the application’s Cloud Firestore. Baserunner provides a number of template queries for common actions. Click on one of them to load it in the textbox, and replace the values that look
==LIKE THIS== with valid names of collections, IDs, fields, etc.
How do I tell if an app is using Cloud Firestore or Realtime Database?
Applications using Realtime Database will have a
databaseURL key in their configuration objects. Applications without this key can be assumed to use Cloud Firestore. Note that it is possible for Firebase applications to use both datastores, so when in doubt, run both types of queries.
I’m getting blocked by CORS!
To function as intended, Baserunner expects applications to accept requests from localhost, which is enabled by default. Therefore, Baserunner cannot be used as a hosted application.
Should requests from localhost be disallowed by the application you’re testing, a version of Baserunner with a reduced featureset can still be run by opening
dist/index.html in your browser. Note that this way of running Baserunner only supports email + password login and not phone login.
How do I know what collections to query for?
Realtime Database: As this datastore is represented as a JSON object, you can use the provided “[Realtime Database] Read datastore” query to attempt to view the entire thing. Note that this may fail depending on the rules configured.
Can I see the results of previous queries?
While only the latest query result is displayed on the Baserunner page, all results are logged to the browser console.
When running Realtime Database queries, I get an error that says the client is offline.
Try rerunning the query.
Source : KitPloit – PenTest Tools!