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

    Threat Intelligence

    EPSS
    0.04% (11th 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 ID SNYK-GOLANG-GITHUBCOMGRAFANAGRAFANAPKGAPI-6501637
  • published 27 Mar 2024
  • disclosed 26 Mar 2024
  • credit Ravid Mazon, Jay Chen

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
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    High
  • Availability (A)
    None
Expand this section

Red Hat

6.5 medium
Expand this section

SUSE

6.5 medium