Improper Authentication in Grafana - CVE-2023-3128

 

Improper Authentication in Grafana - CVE-2023-3128

Published: June 22, 2023


Vulnerability identifier: #VU77652
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-3128
CWE-ID: CWE-287
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass authentication process.

The vulnerability exists due to an error in Azure AD OAuth implementation. Grafana is validating Azure AD accounts based on the email claim. On Azure AD, the profile email field is not unique and can be easily modified. A remote attacker can modify their profile and provide the email address of  an existing Grafana user, bypass authentication process and gain unauthorized access to the application.

The vulnerability affects Grafana installations with Azure AD OAuth configured for a multi-tenant app.



Affected software

Grafana
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Desktop 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Manager Client Tools Beta for SLE Micro
SUSE Linux Enterprise Micro
SUSE Manager Client Tools for SLE Micro
SUSE Enterprise Storage
Anolis OS
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
SUSE Manager Client Tools for SLE
SUSE Manager Client Tools Beta for SLE
SUSE Linux Enterprise Server for the Raspberry Pi
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise High Performance Computing
SUSE Package Hub 15
Basesystem Module
openSUSE Leap
Computer Vision Annotation Tool (CVAT)
mgrctl-bash-completion
mgrctl-zsh-completion
mgrctl-debuginfo
mgrctl
mgrctl-lang
firewalld-prometheus-config
dracut-saltboot
kiwi-desc-saltboot
golang-github-QubitProducts-exporter_exporter
prometheus-postgres_exporter
golang-github-prometheus-promu
prometheus-blackbox_exporter-debuginfo
prometheus-blackbox_exporter
golang-github-prometheus-alertmanager
system-user-grafana
system-user-prometheus
golang-github-lusitaniae-apache_exporter
golang-github-lusitaniae-apache_exporter-debuginfo
supportutils-plugin-salt
golang-github-prometheus-node_exporter
golang-github-boynux-squid_exporter
golang-github-boynux-squid_exporter-debuginfo
python2-hwdata
python3-hwdata
ansible
ansible-doc
golang-github-prometheus-prometheus
release-notes-susemanager-proxy
release-notes-susemanager
python2-uyuni-common-libs
python2-mgr-push
mgr-push
supportutils-plugin-susemanager-client
python2-rhnlib
spacecmd
uyuni-proxy-systemd-services
python3-uyuni-common-libs
python3-mgr-push
python3-rhnlib
python3-spacewalk-check
python3-spacewalk-client-tools
spacewalk-check
spacewalk-client-tools
spacewalk-client-setup
python3-spacewalk-client-setup
python3-pyvmomi
grafana (Red Hat package)
grafana
grafana-debuginfo
ObjectScale
Cryostat
OpenShift Data Foundation (formerly OpenShift Container Storage)
Red Hat Ceph Storage

How to mitigate CVE-2023-3128

Install updates from vendor's website.

Grafana - addressed in versions 9.2.20, 9.3.16
Computer Vision Annotation Tool (CVAT) - update to 2.7.4
mgrctl-bash-completion - addressed in versions 0.1.28-1.16.1, 0.1.28-150000.1.16.1
mgrctl-zsh-completion - addressed in versions 0.1.28-1.16.1, 0.1.28-150000.1.16.1
mgrctl-debuginfo - addressed in versions 0.1.28-1.16.1, 0.1.28-150000.1.16.1
mgrctl - addressed in versions 0.1.28-1.16.1, 0.1.28-150000.1.16.1
mgrctl-lang - update to 0.1.28-150000.1.16.1
firewalld-prometheus-config - addressed in versions 0.1-150000.3.59.1, 0.1-159000.6.33.1
dracut-saltboot - addressed in versions 0.1.1681904360.84ef141-159000.3.30.1, 0.1.1728559936.c16d4fb-150000.1.56.1
kiwi-desc-saltboot - update to 0.1.1687520761.cefb248-4.15.2
golang-github-QubitProducts-exporter_exporter - addressed in versions 0.4.0-4.6.2, 0.4.0-159000.4.6.1
prometheus-postgres_exporter - addressed in versions 0.10.1-3.6.4, 0.10.1-159000.3.6.1
golang-github-prometheus-promu - addressed in versions 0.14.0-4.12.2, 0.17.0-1.24.1, 0.17.0-150000.3.24.1
prometheus-blackbox_exporter-debuginfo - update to 0.24.0-3.6.3
prometheus-blackbox_exporter - addressed in versions 0.24.0-3.6.3, 0.24.0-159000.3.6.1
golang-github-prometheus-alertmanager - update to 0.26.0-4.12.4
system-user-grafana - update to 1.0.0-3.7.2
system-user-prometheus - update to 1.0.0-3.7.2
golang-github-lusitaniae-apache_exporter - addressed in versions 1.0.0-4.12.4, 1.0.0-159000.4.12.1
golang-github-lusitaniae-apache_exporter-debuginfo - update to 1.0.0-159000.4.12.1
supportutils-plugin-salt - addressed in versions 1.2.2-9.9.2, 1.2.2-159000.5.9.1, 1.2.3-6.25.1, 1.2.3-150000.3.16.1
ObjectScale - update to 1.4.0
golang-github-prometheus-node_exporter - update to 1.5.0-4.15.4
golang-github-boynux-squid_exporter - addressed in versions 1.6-4.9.2, 1.6-159000.4.9.1
golang-github-boynux-squid_exporter-debuginfo - update to 1.6-159000.4.9.1
python2-hwdata - update to 2.3.5-15.12.2
python3-hwdata - update to 2.3.5-159000.5.13.1
Cryostat - update to 2.4.0
ansible - update to 2.9.27-159000.3.9.1
ansible-doc - update to 2.9.27-159000.3.9.1
golang-github-prometheus-prometheus - addressed in versions 2.45.0-4.33.3, 2.45.0-159000.6.33.1, 2.53.3-1.56.1, 2.53.3-150000.3.59.1
release-notes-susemanager-proxy - update to 4.3.7-150400.3.58.1
release-notes-susemanager - update to 4.3.7-150400.3.72.1
OpenShift Data Foundation (formerly OpenShift Container Storage) - update to 4.16.0
python2-uyuni-common-libs - update to 5.0.1-3.33.3
python2-mgr-push - update to 5.0.1-4.21.4
mgr-push - addressed in versions 5.0.1-4.21.4, 5.0.1-159000.4.21.1
supportutils-plugin-susemanager-client - addressed in versions 5.0.1-9.15.2, 5.0.1-159000.6.15.1, 5.0.4-6.33.1, 5.0.4-150000.3.27.1
python2-rhnlib - update to 5.0.1-24.30.3
spacecmd - addressed in versions 5.0.1-41.42.3, 5.0.1-159000.6.42.1, 5.0.11-38.153.1, 5.0.11-150000.3.130.1
uyuni-proxy-systemd-services - update to 5.0.1-159000.3.9.1
python3-uyuni-common-libs - update to 5.0.1-159000.3.33.1
python3-mgr-push - update to 5.0.1-159000.4.21.1
python3-rhnlib - update to 5.0.1-159000.6.30.1
python3-spacewalk-check - update to 5.0.1-159000.6.48.1
python3-spacewalk-client-tools - update to 5.0.1-159000.6.48.1
spacewalk-check - update to 5.0.1-159000.6.48.1
spacewalk-client-tools - update to 5.0.1-159000.6.48.1
spacewalk-client-setup - update to 5.0.1-159000.6.48.1
python3-spacewalk-client-setup - update to 5.0.1-159000.6.48.1
python3-pyvmomi - update to 6.7.3-159000.3.6.1
Red Hat Ceph Storage - update to 7.1
grafana (Red Hat package) - addressed in versions 9.0.9-3.el9_2, 9.2.10-7.el8_9
grafana - update to 9.2.10-7.0.1
grafana - addressed in versions 9.5.5-1.51.1, 9.5.5-150000.1.51.1, 9.5.5-150200.3.44.1, 9.5.8-4.21.2, 9.5.8-159000.4.24.1, 10.4.13-1.66.2, 10.4.13-150000.1.66.1, 10.4.13-150200.3.59.1
grafana-debuginfo - addressed in versions 9.5.5-150000.1.51.1, 9.5.5-150200.3.44.1, 9.5.8-159000.4.24.1, 10.4.13-150000.1.66.1, 10.4.13-150200.3.59.1

External References

Related Security Bulletins