title: Users outside an organization can delete a snapshot with its key
description: It is possible for a user in a different organization from the owner of a snapshot to bypass authorization and delete a snapshot by issuing a DELETE request to /api/snapshots/<key> using its view key. This functionality is intended to only be available to individuals with the permission to write/edit to the snapshot in question, but due to a bug in the authorization logic, deletion requests issued by an unprivileged user in a different organization than the snapshot owner are treated as authorized.
Grafana Labs would like to thank Ravid Mazon and Jay Chen of Palo
Alto Research for discovering and disclosing this vulnerability.
This issue affects Grafana: from 9.5.0 before 9.5.18, from 10.0.0 before 10.0.13, from 10.1.0 before 10.1.9, from 10.2.0 before 10.2.6, from 10.3.0 before 10.3.5.
problem types: CWE-639 Authorization Bypass Through User-Controlled Key
affected:
{
defaultStatus: unaffected
platforms: Linux
product: Grafana
repo: https://github.com/grafana/grafana
vendor: Grafana
versions:
lessThan: 9.5.18, status: affected, version: 9.5.0, versionType: semver
lessThan: 10.0.13, status: affected, version: 10.0.0, versionType: semver
lessThan: 10.1.9, status: affected, version: 10.1.0, versionType: semver
lessThan: 10.2.6, status: affected, version: 10.2.0, versionType: semver
lessThan: 10.3.5, status: affected, version: 10.3.0, versionType: semver
status: unaffected, version: 10.4.0
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 6.5
baseSeverity: MEDIUM
confidentialityImpact: NONE
integrityImpact: HIGH
privilegesRequired: LOW
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
version: 3.1
]
format: CVSS
scenarios: GENERAL