Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-ECFFB881-A7A7-11ED-8D6A-6C3BE5272ACD (CVE-2022-23552): Grafana -- Stored XSS in ResourcePicker component

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

FreeBSD: VID-ECFFB881-A7A7-11ED-8D6A-6C3BE5272ACD (CVE-2022-23552): Grafana -- Stored XSS in ResourcePicker component

Severity
4
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:P)
Published
12/16/2022
Created
02/14/2023
Added
02/10/2023
Modified
02/10/2023

Description

Grafana is an open-source platform for monitoring and observability. Starting with the 8.1 branch and prior to versions 8.5.16, 9.2.10, and 9.3.4, Grafana had a stored XSS vulnerability affecting the core plugin GeoMap. The stored XSS vulnerability was possible because SVG files weren't properly sanitized and allowed arbitrary JavaScript to be executed in the context of the currently authorized user of the Grafana instance. An attacker needs to have the Editor role in order to change a panel to include either an external URL to a SVG-file containing JavaScript, or use the `data:` scheme to load an inline SVG-file containing JavaScript. This means that vertical privilege escalation is possible, where a user with Editor role can change to a known password for a user having Admin role if the user with Admin role executes malicious JavaScript viewing a dashboard. Users may upgrade to version 8.5.16, 9.2.10, or 9.3.4 to receive a fix.

Solution(s)

  • freebsd-upgrade-package-grafana
  • freebsd-upgrade-package-grafana8
  • freebsd-upgrade-package-grafana9

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;