Bug 2044628 (CVE-2022-21673)

Summary: CVE-2022-21673 grafana: Forward OAuth Identity Token can allow users to access some data sources
Product: [Other] Security Response Reporter: Todd Cullum <tcullum>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: agerstmayr, amctagga, amuller, anharris, anpicker, aos-bugs, bdettelb, bmontgom, bniver, crarobin, eparis, erooth, fjansen, flucifre, gmeno, gparvin, grafana-maint, hvyas, jburrell, jkurik, jmadigan, jokerman, jramanat, jwendell, mbenjamin, mhackett, nathans, ngough, njean, nstielau, pahickey, pamccart, rcernich, sostapov, spasquie, sponnaga, stcannon, twalsh, vereddy, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: grafana 8.3.4, grafana 7.5.13 Doc Type: If docs needed, set a value
Doc Text:
An information-disclosure flaw was found in grafana. When a data source has the Forward OAuth Identity feature enabled, sending a query to that data source with an API token (and no other user credentials) will forward the OAuth Identity of the most recently logged-in user. This flaw allows API token holders to retrieve data to which they may not be authorized.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 21:31:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2046614, 2046615, 2046616, 2050685, 2054912, 2054913    
Bug Blocks: 2044623    

Description Todd Cullum 2022-01-24 20:43:43 UTC
Grafana is an open-source platform for monitoring and observability. In affected
versions when a data source has the Forward OAuth Identity feature enabled,
sending a query to that datasource with an API token (and no other user
credentials) will forward the OAuth Identity of the most recently logged-in
user. This can allow API token holders to retrieve data for which they may not
have intended access. This attack relies on the Grafana instance having data
sources that support the Forward OAuth Identity feature, the Grafana instance
having a data source with the Forward OAuth Identity feature toggled on, the
Grafana instance having OAuth enabled, and the Grafana instance having usable
API keys. This issue has been patched in versions 7.5.13 and 8.3.4.

References:
https://github.com/grafana/grafana/security/advisories/GHSA-8wjh-59cw-9xh4
https://github.com/grafana/grafana/releases/tag/v8.3.4
https://github.com/grafana/grafana/releases/tag/v7.5.13
https://bugzilla.suse.com/1194873

Comment 3 Sandipan Roy 2022-01-27 04:41:05 UTC
Created grafana tracking bugs for this issue:

Affects: fedora-all [bug 2046615]

Comment 13 errata-xmlrpc 2022-03-10 16:02:26 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.10

Via RHSA-2022:0056 https://access.redhat.com/errata/RHSA-2022:0056

Comment 14 Product Security DevOps Team 2022-03-10 21:31:12 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-21673

Comment 16 errata-xmlrpc 2022-08-09 20:32:24 UTC
This issue has been addressed in the following products:

  Red Hat Ceph Storage 5.2

Via RHSA-2022:6024 https://access.redhat.com/errata/RHSA-2022:6024

Comment 17 errata-xmlrpc 2022-11-08 09:25:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7519 https://access.redhat.com/errata/RHSA-2022:7519

Comment 18 errata-xmlrpc 2022-11-15 10:05:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:8057 https://access.redhat.com/errata/RHSA-2022:8057