关联漏洞
标题:
Grafana 路径遍历漏洞
(CVE-2021-43798)
描述:Grafana是Grafana实验室的一套提供可视化监控界面的开源监控工具。该工具主要用于监控和分析Graphite、InfluxDB和Prometheus等。 Grafana 8.0.0-beta1至8.3.0存在路径遍历漏洞,攻击者可利用该漏洞执行目录遍历攻击,访问本地文件。
描述
Automated path traversal testing tool for Grafana plugin endpoints using curl and Bash.
介绍
# Grafana Path Traversal Tester
This script automates the testing of known Grafana plugin endpoints for potential path traversal vulnerabilities using `curl`.
## 🛠 Features
- Reads target paths from a file (e.g. `paths.txt`)
- Sends HTTP requests using `--path-as-is` to bypass normalization
- Captures HTTP status codes and response bodies
- Saves only successful responses (HTTP 200) to individual files
- Silent and clean output for easy triaging
## 📂 Output
Successful hits are saved in the `hits/` directory with safe, readable filenames derived from the path.
## 🚀 Usage
1. Add your list of paths (relative to the plugin directory) to `paths.txt`
2. Run the script:
```bash
chmod +x grafana-cve-2021-43798.sh
./grafana-cve-2021-43798.sh
文件快照
[4.0K] /data/pocs/1be45a239c73bb11be3c0f1aafb8a948be6c758c
├── [1.2K] grafana-cve-2021-43798.sh
├── [4.0K] paths.txt
└── [ 760] README.md
0 directories, 3 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。