
Python checker and active PoC for CVE-2026-72898 in Metabase: detects version and SQL error indicators, then tests SQLi against the password reset endpoint.
A collection of two Python scripts to help check the suspected impact of CVE-2026-72898 on Metabase instances. The vulnerable version information used by the checker is embedded in the script and is not a substitute for official advisories or manual testing.
Use only on systems you own, lab environments, or systems that explicitly permit this testing. You are responsible for ensuring permission, scope, and testing rules before running either script.
The checker sends HTTP requests and probes in the form of SQLi input. Although it is not designed to create an administrator session, these requests may still be recorded in logs or trigger application behavior. The PoC is an active test: the script sends SQLi payloads and attempts to verify an administrator session. PoC testing may alter data or session state on the target. Do not run the PoC on production systems or third-party targets without written consent and a recovery plan.
| File | Purpose |
|---|---|
CVE-2026-72898-checker.py | Accessibility-based check, Metabase identification, detected version, and SQL error indicators. Results can be saved as JSON. |
CVE-2026-72898-poc.py | Active three-step test: checks the service, sends a payload to the password reset endpoint, then checks whether an administrator session is accepted. Results can be saved as TSV. |
Both scripts have different options and result formats. Run --help to see the options available directly from the script version in this workspace.
requests (this package also installs the urllib3 dependency used by the PoC)Using a virtual environment is recommended:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install requests
In Windows PowerShell, activate the environment with:
.venv\Scripts\Activate.ps1
Check a single URL:
python CVE-2026-72898-checker.py --url https://metabase.example.test
Check several URLs from the file, one URL per line. Empty lines and lines starting with # are skipped:
https://metabase-lab-1.example.test
# instance lab kedua
http://192.0.2.20:3000
python CVE-2026-72898-checker.py --file targets.txt --output hasil_scan.json
Opsi tambahan:
python CVE-2026-72898-checker.py --url https://metabase.example.test --timeout 20 --delay 2 --verbose
--timeout: batas waktu request dalam detik; default 15.--delay: jeda antar target dalam detik; default 1.0.--verbose: tampilkan detail diagnostik.--no-verify-ssl: nonaktifkan validasi sertifikat TLS. Gunakan hanya di lab ketika memang diperlukan.--output: simpan laporan JSON.Checker menolak penggunaan --url dan --file secara bersamaan. Kode keluar yang diterapkan: 0 jika tidak ada status VULNERABLE atau ERROR, 1 jika ada error, dan 2 jika ada temuan VULNERABLE.
PoC melakukan pengujian aktif. Jalankan hanya pada target yang secara eksplisit diizinkan:
python CVE-2026-72898-poc.py --target http://metabase-lab.example.test:3000
For the list of targets:
http://metabase-lab-1.example.test:3000
# target lab lain
http://192.0.2.30:3000
python CVE-2026-72898-poc.py --targets targets.txt --output hasil_poc.tsv --timeout 20
--target / -t: a single target URL.--targets / -T: target file, one URL per line; if both are provided, the file is used.--output / -o: save results as tab-separated (TSV).--timeout: request timeout in seconds; default 15.--verbose / -v: show additional diagnostics, including request and payload details.The PoC disables TLS certificate validation for all requests. Do not assume that the HTTPS connections used by the PoC have verified the server's identity. Verbose mode can display highly sensitive data; avoid enabling it unless needed and do not share raw output.
The checker returns statuses such as VULNERABLE, PATCHED, NOT_AFFECTED, LIKELY_SAFE, NOT_METABASE, ENDPOINT_NOT_FOUND, or ERROR. The LIKELY_SAFE status is not proof that the target is safe. The VULNERABLE status may be based on the version embedded in the checker or SQL error indicators; results need to be confirmed against the official advisory and the target's actual configuration.
The PoC reports vulnerable or statuses such as patched, not_vulnerable, unknown, timeout, and error. A not_vulnerable result does not prove that all vulnerability conditions have been eliminated.
PoC result files may contain session IDs and administrator email addresses. Treat JSON/TSV reports, target files, and verbose logs as sensitive data: restrict access, store them securely, and delete them according to organizational policy once the audit need is complete.
Stop active testing, securely preserve the minimum necessary evidence, and inform the system owner through approved channels. Validate the version against the official Metabase advisory, then prioritize updating to a fixed release according to vendor guidance. If an administrator session may have been established, the system owner should revoke related sessions, review logs and account activity, and follow internal incident response procedures.