
Grafana 서버에서 CVE-2019-15043을 점검하는 PoC 스캐너로, 버전을 검증하고 인증되지 않은 snapshot API 접근을 테스트합니다.
Grafana 서버가 CVE-2019-15043에 취약한지 확인하는 개념 증명 스캔입니다. Grafana 서버 버전 번호를 확인하고 스냅샷 API가 인증되지 않은 요청을 허용하는지 확인합니다.
CVE-2019-15043은 Grafana 스냅샷 API에서 발견된 서비스 거부 취약점입니다.
이 취약점은 버전 5.4.5 및 6.3.4에서 수정되었습니다.
requests 라이브러리만 필요합니다.
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
버전 번호만 확인:
$ ./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.
스냅샷 API가 인증을 요구하는지 확인:
$ ./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.