Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-43798 PoC — Grafana path traversal

Source
Associated Vulnerability
Title:Grafana path traversal (CVE-2021-43798)
Description:Grafana is an open-source platform for monitoring and observability. Grafana versions 8.0.0-beta1 through 8.3.0 (except for patched versions) iss vulnerable to directory traversal, allowing access to local files. The vulnerable URL path is: `<grafana_host_url>/public/plugins//`, where is the plugin ID for any installed plugin. At no time has Grafana Cloud been vulnerable. Users are advised to upgrade to patched versions 8.0.7, 8.1.8, 8.2.7, or 8.3.1. The GitHub Security Advisory contains more information about vulnerable URL paths, mitigation, and the disclosure timeline.
Description
Directory Traversal and Arbitrary File Read on Grafana
Readme
# 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>
File Snapshot

[4.0K] /data/pocs/05e49065836e8a5ee91fcf2d33cdb1ad5ce17ee8 ├── [2.4K] ExploitGrafana.sh └── [1.2K] README.md 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →