
Client exploit proof-of-concept per il bypass dell'autenticazione di InfluxDB (CVE-2019-20933). Esegue query arbitrarie contro istanze InfluxDB vulnerabili utilizzando un segreto condiviso JWT vuoto.
InfluxDB prima della versione 1.7.6 ha una vulnerabilità di bypass dell'autenticazione nella funzione authenticate in services/httpd/handler.go perché un token JWT può avere uno SharedSecret vuoto (noto anche come shared secret).
(vedi https://nvd.nist.gov/vuln/detail/CVE-2019-20933 per maggiori dettagli)
Questa PoC sfrutta la CVE sopra citata per creare un client influxDB rapido e sporco.
usage: influx-client.py [-h] [--host HOST] [--port PORT] [--user USER] [--db DB] query
A simple, silly, over-the-top influxdb client made in Python
positional arguments: query The query to execute. default: SHOW DATABASES
optional arguments: -h, --help show this help message and exit --host HOST The target IP. (default: localhost) --port PORT, -p PORT The target port. (default: 8086) --user USER The target username. (default: admin) --db DB The database to use.
Porzioni di codice prese in prestito da https://github.com/LorenzoTullini/InfluxDB-Exploit-CVE-2019-20933