Authentication Bypass Affecting github.com/grafana/grafana/pkg/api package, versions >=8.0.0 <8.1.6 >=2.0.1 <7.5.11


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Mature
    EPSS
    91.02% (99th 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-1728395
  • published 6 Oct 2021
  • disclosed 5 Oct 2021
  • credit theblackturtle

How to fix?

Upgrade github.com/grafana/grafana/pkg/api to version 8.1.6, 7.5.11 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 Authentication Bypass. Both unauthenticated and authenticated users are able to view the snapshot with the lowest database key by accessing the literal paths /dashboard/snapshot/:key or /api/snapshots/:key.

Additionally, if the snapshot public_mode configuration setting is set to true (the default is false), unauthenticated users are also able to delete the snapshot with the lowest database key by accessing the literal path /api/snapshots-delete/:deleteKey. Authenticated users are able to delete the snapshot with the lowest database key regardless of the snapshot public_mode, by accessing either one of the literal paths: /api/snapshots/:key or /api/snapshots-delete/:deleteKey.

The combination of deletion and viewing enables a complete walk through all snapshot data while resulting in complete snapshot data loss.

CVSS Scores

version 3.1
Expand this section

Snyk

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

NVD

7.3 high
Expand this section

Red Hat

7.3 high