Advisories

GrafanaCVE advisory

CVE-2022-21713: Grafana Teams API IDOR

An IDOR in Grafana's Teams API let authenticated users view team data not meant for them.

CVSS 3.1
4.3
severity
Medium
endpoints affected
3
public release
Feb 2022

Score

CVSS 3.1, from Grafana's advisory.

4.3MediumCVSS 3.1 base score
  • Attack vectorNetwork
  • Attack complexityLow
  • Privileges requiredLow
  • User interactionNone
  • ScopeUnchanged
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

The request flow

From Grafana's advisory.

  1. AccessAuthenticated user
  2. RequestQueries a team IDattacker in control
  3. FlawIDOR in the Teams API
  4. ImpactUnintended team data
1 of 4 hops is attacker-controlled.

Affected and fixed

Affected
All Grafana versions from 5.0.0-beta1
Fixed in
Grafana 8.3.5 and 7.5.15
Grafana Cloud
Patched
Cloud providers
Licensed providers, including Amazon Managed Grafana, were notified under embargo

Impact by endpoint

From Grafana's advisory.

Impact on each affected endpoint, from Grafana's advisory
EndpointImpact
/teams/:teamIdAn authenticated attacker could view unintended data by querying a team ID.
/teams/:searchAn authenticated attacker could see the total number of teams, including ones they cannot access.
/teams/:teamId/membersWhen editors_can_admin is enabled, an authenticated attacker could see unintended member data.

Disclosure timeline

Grafana's advisory, UTC.

  1. Reported to Grafana
  2. Confirmed reproducible
  3. CVE issued and fix PR opened
  4. Private release
  5. Public release: Grafana 8.3.5 and 7.5.15

Facts

Credit
External security researcher, credited by Grafana.
Severity
Severity: Medium
Status
Fixed
Public release

Summary

An insecure direct object reference (IDOR) in Grafana's Teams API. An authenticated attacker could view unintended data by querying a team ID, and see the total number of teams, including ones they cannot access. With editors_can_admin enabled, they could also see unintended member data. Grafana fixed it in 8.3.5 and 7.5.15 and credited me as the external security researcher. My report included reproducible request evidence and impact analysis.

Sources

4 links, opening outside this site.