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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

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 Learn

Learn about Authorization Bypass Through User-Controlled Key vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGRAFANAGRAFANAPKGAPI-6501637
  • published27 Mar 2024
  • disclosed26 Mar 2024
  • creditRavid Mazon, Jay Chen

Introduced: 26 Mar 2024

CVE-2024-1313  (opens in a new tab)
CWE-639  (opens in a new tab)

How 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.

CVSS Scores

version 3.1