POC详情: 05e49065836e8a5ee91fcf2d33cdb1ad5ce17ee8

来源
关联漏洞
标题: Grafana 路径遍历漏洞 (CVE-2021-43798)
描述:Grafana是Grafana实验室的一套提供可视化监控界面的开源监控工具。该工具主要用于监控和分析Graphite、InfluxDB和Prometheus等。 Grafana 8.0.0-beta1至8.3.0存在路径遍历漏洞,攻击者可利用该漏洞执行目录遍历攻击,访问本地文件。
描述
Directory Traversal and Arbitrary File Read on Grafana
介绍
# CVE-2021-43798
Directory Traversal and Arbitrary File Read on Grafana

Authors:<br>
Wagner Alves - Red Team Analyst<br>

This exploit leverages Directory Traversal and Arbitrary File Read vulnerabilities in Grafana 8.0 - 8.3, allowing it to read files such as /etc/passwd, /etc/hosts, /home/user/.ssh/id_rsa, /etc/os-release, and other interesting files.



## Installation

```
git clone https://github.com/wagneralves/CVE-2021-43798.git
cd CVE-2021-43798
chmod +x ExploitGrafana.sh
```


## Usage

```
ex: ./ExploitGrafana.sh -h http://domain.xpto:3000 -f /etc/passwd
```


<div align="center">
  <img src="https://github.com/wagneralves/CVE-2021-43798/assets/5523049/4fb6fde7-538e-451b-bd21-2181ab2e1475" width="1080px" />
</div>
<br>

```
ex: ./ExploitGrafana.sh -h http://domain.xpto:3000 -f /home/user/.ssh/id_rsa
```


<div align="center">
  <img src="https://github.com/wagneralves/CVE-2021-43798/assets/5523049/33dc3a9c-8458-43c6-b38d-d68bbaaaab01" width="1080px" />
</div>
<br>


```
ex: ./ExploitGrafana.sh -h http://domain.xpto:3000 -f /home/user/.ssh/id_rsa
```


<div align="center">
  <img src="https://github.com/wagneralves/CVE-2021-43798/assets/5523049/93172c6f-a85a-4472-a606-3e6fb6f3bf6a" width="1080px" />
</div>
<br>
文件快照

[4.0K] /data/pocs/05e49065836e8a5ee91fcf2d33cdb1ad5ce17ee8 ├── [2.4K] ExploitGrafana.sh └── [1.2K] README.md 0 directories, 2 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。