Lucene search

K
githubGitHub Advisory DatabaseGHSA-GRJV-GJGR-66G2
HistoryJun 20, 2024 - 4:24 p.m.

SpiceDB exclusions can result in no permission returned when permission expected

2024-06-2016:24:01
CWE-281
GitHub Advisory Database
github.com
11
spicedb
exclusions
no_permission
permission
checkpermission
api
folders
user access

CVSS3

3.7

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

LOW

Availability Impact

NONE

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

AI Score

6.6

Confidence

High

EPSS

0

Percentile

9.0%

Background

Use of an exclusion under an arrow that has multiple resources may resolve to NO_PERMISSION when permission is expected.

For example, given this schema:

definition user {}

definition folder {
  relation member: user
  relation banned: user
  permission view = member - banned
}

definition resource {
  relation folder: folder
  permission view = folder->view
}

If the resource exists under multiple folders and the user has access to view more than a single folder, SpiceDB may report the user does not have access due to a failure in the exclusion dispatcher to request that all the folders in which the user is a member be returned

Impact

Permission is returned as NO_PERMISSION when PERMISSION is expected on the CheckPermission API.

Workarounds

None

Affected configurations

Vulners
Node
authzedspicedbRange<1.33.1
VendorProductVersionCPE
authzedspicedb*cpe:2.3:a:authzed:spicedb:*:*:*:*:*:*:*:*

CVSS3

3.7

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

LOW

Availability Impact

NONE

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

AI Score

6.6

Confidence

High

EPSS

0

Percentile

9.0%