
Proof-of-Concept-Scanner, der Grafana-Server auf CVE-2019-15043 prüft, indem er die Version verifiziert und den nicht authentifizierten Zugriff auf die Snapshot-API testet.
Proof-of-Concept-Scan, um zu überprüfen, ob ein Grafana-Server anfällig für CVE-2019-15043 ist. Überprüft die Versionsnummer des Grafana-Servers und prüft, ob die Snapshot-API nicht authentifizierte Anfragen zulässt.
CVE-2019-15043 ist eine Denial-of-Service-Sicherheitslücke in der Grafana-Snapshots-API.
Diese Sicherheitslücke wurde in den Versionen 5.4.5 und 6.3.4 behoben.
Benötigt nur die requests-Bibliothek.
Installieren mit pip3 install requests
$ ./cve-2019-15043.py -h
usage: cve-2019-15043.py [-h] [-u URL] [-c]
For checking if a Grafana instance is vunlerable to CVE-2019-15043
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL URL of the target Grafana instance e.g. '-u
https://localhost:3000'
-c, --check-version Only check the Grafana versio
Nur Versionsnummer überprüfen:
$ ./cve-2019-15043.py -u http://192.168.3.38:3000 -c
[-] Testing http://192.168.3.38:3000...
[-] Status: 200
[-] Checking for version...
[-] Grafana version appears to be: 6.3.3
[+] Version seems to indicate it might be vulnerable!
$ ./cve-2019-15043.py -u http://192.168.3.38:3000 -c
[-] Testing http://192.168.3.38:3000...
[-] Status: 200
[-] Checking for version...
[-] Grafana version appears to be: 6.3.4
[!] Version seems to indicate it's probably not vulnerable.
Überprüfen, ob die Snapshot-API eine Authentifizierung erfordert:
$ ./cve-2019-15043.py -u http://192.168.3.38:3000
[-] Testing http://192.168.3.38:3000...
[-] Status: 200
[-] Checking for version...
[-] Grafana version appears to be: 6.3.3
[+] Version seems to indicate it might be vulnerable!
[-] Checking if snapshot api requires authentiation...
[+] Snapshot endpoint doesn't seem to require authentication! Host may be vulnerable.
./cve-2019-15043.py -u http://192.168.3.38:3000
[-] Testing http://192.168.3.38:3000...
[-] Status: 200
[-] Checking for version...
[-] Grafana version appears to be: 6.3.4
[!] Version seems to indicate it's probably not vulnerable.
[-] Checking if snapshot api requires authentiation...
[!] Status: 401
[!] Snapshot endpoint requires authentication! Host not vulnerable.