Bug 2186322 (CVE-2023-1387) - CVE-2023-1387 grafana: JWT token leak to data source
Summary: CVE-2023-1387 grafana: JWT token leak to data source
Keywords:
Status: NEW
Alias: CVE-2023-1387
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: 2187245 2187246 2187247 2187592 2187593 2203041 2254041
Blocks: 2186323
TreeView+ depends on / blocked
 
Reported: 2023-04-12 21:06 UTC by Pedro Sampaio
Modified: 2024-03-02 05:32 UTC (History)
25 users (show)

Fixed In Version: grafana 9.5.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Grafana. This flaw allows a remote, authenticated attacker to obtain sensitive information caused by an issue when enabling the "url_login" configuration option. By sending a specially crafted request, an attacker can obtain JWT information and use this to launch further attacks against the affected system.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:7741 0 None None None 2023-12-12 13:56:32 UTC
Red Hat Product Errata RHSA-2024:0746 0 None None None 2024-02-08 16:58:21 UTC

Description Pedro Sampaio 2023-04-12 21:06:46 UTC
Where an attacker has control on a datasource, the JWT token can be leaked to the data source when the GF_AUTH_JWT_URL_TOKEN is set to true.

References:

https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/jwt/?mkt_tok=MzU2LVlGRy0zODkAAAGLFetKhj7bubnwJdat7dsOUsknnKYqQ9qYPFzMoSlKt-Q2six9bJNYh9F9jYhkMcc7sxu_Zgchs7ypuWq1wvGij0ouoSHS40eCT0UURdmmvRo#url-login

Comment 4 Avinash Hanwate 2023-05-11 06:15:44 UTC
Created grafana tracking bugs for this issue:

Affects: fedora-all [bug 2203041]

Comment 6 errata-xmlrpc 2023-12-12 13:56:31 UTC
This issue has been addressed in the following products:

  Red Hat Ceph Storage 6.1

Via RHSA-2023:7741 https://access.redhat.com/errata/RHSA-2023:7741

Comment 7 errata-xmlrpc 2024-02-08 16:58:19 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.