ABAC formulas with $not are evaluated per related row and allow access the formula denies in Eclipse BaSyx Go Components
Summary
In Eclipse BaSyx Go Components versions up to and including 1.1.5, ABAC-enabled deployments evaluate a $not in an access rule formula per related row instead of per resource in two places, so a formula such as "no element Restricted" is satisfied by any other element of the same Submodel.
In...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Eclipse FoundationEclipse BaSyx Go Components |
< 1.1.6→ 1.1.6 |
1.1.6 |
Original description The description as published by the source.
In Eclipse BaSyx Go Components versions up to and including 1.1.5, ABAC-enabled deployments evaluate a $not in an access rule formula per related row instead of per resource in two places, so a formula such as "no element Restricted" is satisfied by any other element of the same Submodel.
In all these versions, a $not inside an $or whose operands read fields of the same related table, for example Submodel Elements ($sme), is checked per row. This also applies when several access rules for the same request are combined, because their formulas are joined with $or. An authenticated caller can therefore read, and where the rule grants it modify, resources that the access rules are meant to deny.
In versions 1.0.12 to 1.1.5, the AAS Repository, AAS Environment and Submodel Repository also apply the formula of a related Submodel per joined Submodel Element row when a query condition reads $sm or $sme fields. An authenticated caller allowed to use /query/shells or /query/submodels can therefore use query conditions to test the contents of Submodels that the access rules hide from them, one condition at a time.
The issue is fixed in Eclipse BaSyx Go Components v1.1.6.
Source: CVE.org (CVE Program・cvelistV5) NVD
References
- patch github.com
- web gitlab.eclipse.org
- web github.com
- web gitlab.eclipse.org