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.
Readme
# CVE-2021-43798 Grafana-Arbitrary-File-Read (8.0.0 ~~ 8.3.0)

A vulnerability in Grafana (CVE-2021-43798) versions 8.0.0 ~~ 8.3.0  that allows an unauthenticated attacker to read arbitrary files from the server by leveraging a path traversal aimed towards the `/public/plugins/<plugin>` path to access sensitive files on the system.

# Usage

`python3 exploit.py --domain <example.com> --port <PORT>`


  1) The script automatically tests a lit of possibly vulnerable paths
  2) Interactive Shell: Once a vulnerable endpoint is found, the script prompts for a file path to read form the server.

# Shell Example:

![image](https://github.com/user-attachments/assets/991978c0-112c-4aa1-982e-b3fffa0520e3)


# References
[CVE-2021-43789](https://grafana.com/blog/2021/12/07/grafana-8.3.1-8.2.7-8.1.8-and-8.0.7-released-with-high-severity-security-fix/).



Disclaimer
This script is for educational purposes.
File Snapshot

[4.0K] /data/pocs/80e096f6775bde417cf939be7a8b18f7f529d1f2 ├── [5.6K] exploit.py └── [ 908] 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 →