Failed casts under $not grant access in ABAC formulas in Eclipse BaSyx Go Components
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| Eclipse FoundationEclipse BaSyx Go Components |
1.0.12 以上 1.1.6 未満→ 1.1.6 |
1.1.6 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
In Eclipse BaSyx Go Components versions 1.0.12 to 1.1.5, ABAC-enabled deployments treat a comparison on a related table, such as Submodel Elements, as false when a cast of the stored value fails or when a $regex pattern taken from a stored value or claim is rejected by PostgreSQL. Under $not, such a comparison makes the rule allow the resource, although the AAS Query Language requires a failed cast to exclude the candidate. $hexCast of a field also compares the stored text without normalizing it, so 16#0a does not equal 16#0A.
A rule such as "every Submodel except those whose Code is 16#0A" therefore allows Submodels whose Code is stored as 16#0a, and a rule that excludes a numeric value allows Submodels whose value cannot be cast to a number. An authenticated caller can therefore read, and where the rule grants it modify, resources that the access rules are meant to deny.
The issue is fixed in Eclipse BaSyx Go Components v1.1.6.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web gitlab.eclipse.org
- web github.com
- web gitlab.eclipse.org
- web github.com