Bug 2164936 (CVE-2023-22462) - CVE-2023-22462 grafana: stored XSS vulnerability affecting the core plugin "Text"
Summary: CVE-2023-22462 grafana: stored XSS vulnerability affecting the core plugin "T...
Keywords:
Status: NEW
Alias: CVE-2023-22462
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2164938 2164939 2164941 2164945 2164946
Blocks: 2164525
TreeView+ depends on / blocked
 
Reported: 2023-01-27 04:02 UTC by Avinash Hanwate
Modified: 2024-03-02 05:32 UTC (History)
25 users (show)

Fixed In Version: Grafana 9.2.11, Grafana 9.3.5
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Grafana core plugin, "Text." The vulnerability was possible due to React's render cycle that will pass through unsanitized HTML code. However, the HTML is cleaned and saved in Grafana's database in the next cycle. An attacker needs the Editor role in changing a Text panel to include JavaScript. Later, another user needs to edit the same Text panel and click "Markdown" or "HTML" to execute the code. This issue allows possible vertical privilege escalation, where a user with an Editor role can change to a known password for a user having an Admin role if the user with an Admin role executes malicious JavaScript viewing a dashboard.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:0746 0 None None None 2024-02-08 16:57:55 UTC

Description Avinash Hanwate 2023-01-27 04:02:49 UTC
The stored XSS vulnerability requires several user interactions in order to be fully exploited. The vulnerability was possible due to React's render cycle that will pass through the unsanitized HTML code, but in the next cycle, the HTML is cleaned up and saved in Grafana's database.
An attacker needs to have the Editor role in order to change a Text panel to include JavaScript. Later, another user needs to edit the same Text panel, and click on "Markdown" or "HTML" for the code to be executed. This means that vertical privilege escalation is possible, where a user with an Editor role can change to a known password for a user having an Admin role if the user with an Admin role executes malicious JavaScript viewing a dashboard.

Comment 9 errata-xmlrpc 2024-02-08 16:57:53 UTC
This issue has been addressed in the following products:

  Red Hat Ceph Storage 5.3

Via RHSA-2024:0746 https://access.redhat.com/errata/RHSA-2024:0746


Note You need to log in before you can comment on or make changes to this bug.