# securebinary/firebaseexploiter architecture

> Architecture diagram of the GitHub repository securebinary/firebaseexploiter, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/securebinary/firebaseexploiter
- Repository: https://github.com/securebinary/firebaseexploiter

## Overview

FirebaseExploiter is a Go CLI for checking Firebase database URLs and, when requested, writing a custom JSON document to vulnerable databases. Its workflow accepts a URL or a file of hosts, probes each target, and optionally reads and validates exploit.json before posting it to a configurable path. The single Go source file implements the CLI and these stages. The README documents single-target and mass scanning, custom payloads, and custom paths; the source excerpt shows the call flow and HTTP operations.

Main entry points: [`firebaseExploiter.go`](https://github.com/securebinary/firebaseexploiter/blob/main/firebaseExploiter.go) (JSON exploit writer), [`exploit.json`](https://github.com/securebinary/firebaseexploiter/blob/main/exploit.json) (Exploit payload)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI and targets"]
  node_cli["CLI options"]
  node_target_list["Host list reader"]
end

subgraph group_scan["Vulnerability scanning"]
  node_probe["Firebase URL probe"]
end

subgraph group_exploit["Exploit writing"]
  node_writer["JSON exploit writer"]
  node_payload["Exploit payload<br/>[exploit.json]"]
  node_validator["JSON validator"]
end

node_user(("Operator"))
node_firebase[("Firebase database")]

node_user -->|"runs"| node_cli
node_cli -->|"checks URL"| node_probe
node_cli -->|"reads hosts"| node_target_list
node_target_list -->|"checks each"| node_probe
node_probe -->|"GET probe"| node_firebase
node_probe -->|"calls on request"| node_writer
node_writer -->|"reads"| node_payload
node_writer -->|"validates with"| node_validator
node_writer -->|"POST JSON"| node_firebase

click node_cli "https://github.com/securebinary/firebaseexploiter/blob/main/firebaseExploiter.go"
click node_target_list "https://github.com/securebinary/firebaseexploiter/blob/main/firebaseExploiter.go"
click node_probe "https://github.com/securebinary/firebaseexploiter/blob/main/firebaseExploiter.go"
click node_writer "https://github.com/securebinary/firebaseexploiter/blob/main/firebaseExploiter.go"
click node_payload "https://github.com/securebinary/firebaseexploiter/blob/main/exploit.json"
click node_validator "https://github.com/securebinary/firebaseexploiter/blob/main/firebaseExploiter.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_target_list toneBlue
class node_probe,node_firebase toneAmber
class node_writer,node_payload,node_validator toneMint
class node_user toneIndigo
```

## Components

### CLI and targets

- [CLI options](https://github.com/securebinary/firebaseexploiter/blob/main/firebaseExploiter.go): `firebaseExploiter.go`
- [Host list reader](https://github.com/securebinary/firebaseexploiter/blob/main/firebaseExploiter.go): `firebaseExploiter.go`

### Vulnerability scanning

- [Firebase URL probe](https://github.com/securebinary/firebaseexploiter/blob/main/firebaseExploiter.go): `firebaseExploiter.go`

### Exploit writing

- [JSON exploit writer](https://github.com/securebinary/firebaseexploiter/blob/main/firebaseExploiter.go): `firebaseExploiter.go`
- [Exploit payload](https://github.com/securebinary/firebaseexploiter/blob/main/exploit.json): `exploit.json`
- [JSON validator](https://github.com/securebinary/firebaseexploiter/blob/main/firebaseExploiter.go): `firebaseExploiter.go`

### Other components

- **Operator**
- **Firebase database**

## Connections

- Operator → CLI options: runs (evidence: `README.md`)
- CLI options → Firebase URL probe: checks URL (evidence: `firebaseExploiter.go`)
- CLI options → Host list reader: reads hosts (evidence: `firebaseExploiter.go`)
- Host list reader → Firebase URL probe: checks each (evidence: `firebaseExploiter.go`)
- Firebase URL probe → Firebase database: GET probe (evidence: `firebaseExploiter.go`)
- Firebase URL probe → JSON exploit writer: calls on request (evidence: `firebaseExploiter.go`)
- JSON exploit writer → Exploit payload: reads (evidence: `firebaseExploiter.go`)
- JSON exploit writer → JSON validator: validates with (evidence: `firebaseExploiter.go`)
- JSON exploit writer → Firebase database: POST JSON (evidence: `firebaseExploiter.go`)
