CVE-2023-1387: Infoleak
Grafana is an open-source platform for monitoring and observability.
Starting with the 9.1 branch, Grafana introduced the ability to search for a JWT in the URL query parameter authtoken and use it as the authentication token.
By enabling the "urllogin" configuration option (disabled by default), a JWT might be sent to data sources. If an attacker has access to the data source, the leaked token could be used to authenticate to Grafana.
Other sources
Where an attacker has control on a datasource, the JWT token can be leaked to the data source when the GFAUTHJWTURLTOKEN is set to true.
References:
https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/jwt/?mkttok=MzU2LVlGRy0zODkAAAGLFetKhj7bubnwJdat7dsOUsknnKYqQ9qYPFzMoSlKt-Q2six9bJNYh9F9jYhkMcc7sxuZgchs7ypuWq1wvGij0ouoSHS40eCT0UURdmmvRo#url-login
— Red Hat
Affected Software
Event History
Frequently Asked Questions
What is the vulnerability ID for this Grafana vulnerability?
The vulnerability ID for this Grafana vulnerability is CVE-2023-1387.
What is the description of this Grafana vulnerability?
Grafana introduced the ability to search for a JWT in the URL query parameter auth_token and use it as the authentication token, which can be exploited by an attacker.
What is the severity of CVE-2023-1387?
The severity of CVE-2023-1387 is high.
How can an attacker exploit this vulnerability?
An attacker can exploit this vulnerability by searching for a JWT in the URL query parameter auth_token and using it as the authentication token.
Are there any references for CVE-2023-1387?
Yes, there are references for CVE-2023-1387. You can find them at the following links: [link1](https://github.com/grafana/bugbounty/security/advisories/GHSA-5585-m9r5-p86j), [link2](https://grafana.com/security/security-advisories/cve-2023-1387/), [link3](https://security.netapp.com/advisory/ntap-20230609-0003/).