关联漏洞
标题:
Grafana 路径遍历漏洞
(CVE-2021-43798)
描述:Grafana是Grafana实验室的一套提供可视化监控界面的开源监控工具。该工具主要用于监控和分析Graphite、InfluxDB和Prometheus等。 Grafana 8.0.0-beta1至8.3.0存在路径遍历漏洞,攻击者可利用该漏洞执行目录遍历攻击,访问本地文件。
介绍
# grafana-exploit-CVE-2021-43798
# About
### What is this exploit used for ?
- used for the Grafana Unauthorized Arbitrary File Read Vulnerability (CVE-2021-43798)
- allows access to local files using directory traversal
### What grafana versions will this exploit work for?
- will work for Grafana versions 8.0.0-beta1 through 8.3.0.
- Versions 8.07, 8.1.8, 8.2.7 and 8.3.1 are patched.
### Operating System Compatibility
- this exploit was written to work on Linux targets
### Disclaimer
- only use this exploit with explicit permission from the network owner
- code **cannot** be used to violate the law
- the author of this project is not responsible for the misuse of this code
# Usage
### Syntax
- `./grafana.sh <ip> <plugin file> <file path> <port # optional>`
### Example
- `./grafana.sh 10.10.10.10 plugins.txt /etc/passwd`
### Description
- The plugins.txt file is in the repository and can be used for the `plugin file` parameter
- There are three required parameters:
- `ip`
- `plugin file`
- `file path`
- If the grafana instance is not running on the default 3000 port, then add the port number as the 4th parameter
文件快照
[4.0K] /data/pocs/a49780bd1eb4e786b5bdc7cb67407aad3b5e067f
├── [2.1K] grafana.sh
├── [ 379] plugins.txt
└── [1.1K] README.md
0 directories, 3 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。