Authorization Bypass Through User-Controlled Key Affecting github.com/grafana/grafana/pkg/api package, versions >=9.5.0 <9.5.18 >=10.0.0 <10.0.13 >=10.1.0 <10.1.9 >=10.2.0 <10.2.6 >=10.3.0 <10.3.5
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-GOLANG-GITHUBCOMGRAFANAGRAFANAPKGAPI-6501637
- published 27 Mar 2024
- disclosed 26 Mar 2024
- credit Ravid Mazon, Jay Chen
Introduced: 26 Mar 2024
CVE-2024-1313 Open this link in a new tabHow to fix?
Upgrade github.com/grafana/grafana/pkg/api
to version 9.5.18, 10.0.13, 10.1.9, 10.2.6, 10.3.5 or higher.
Overview
github.com/grafana/grafana/pkg/api is an open and composable observability and data visualization platform.
Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key due to improper authorization checks in the snapshot deletion process. An attacker can bypass authorization and delete a snapshot by sending a DELETE
request to /api/snapshots/<key>
with its view key, even if they do not have the required permissions. This issue arises from a flaw in the authorization logic, where deletion requests from an unprivileged user in a different organization than the snapshot owner are incorrectly authorized.