概要
Untrusted Query Object Evaluation in RPC API
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
During the sign in and sign up operations through the SurrealDB RPC API, an arbitrary object would be accepted in order to support a wide array of types and structures that could contain user credentials. This arbitrary object could potentially contain any SurrealDB value, including an object representing a subquery. For this to materialize, this object would need to be encoded using the bincode serialization format instead of the default JSON serialization format or the additionally supported CBOR serialization format.
If a binary object containing a subquery were to be provided in this way, that subquery would be computed while executing the SIGNIN and SIGNUP queries defined by the database owner while defining a record access method. Since those queries are executed under a system user session with the editor role, an unauthenticated attacker may be able to leverage this behavior to select, create, update and delete non-IAM resources with permissions of a system user with the editor role.
Impact
If a record access method was defined with a SIGNIN or a SIGNUP query and the SurrealDB RPC API was exposed to untrusted users, an attacker could be able to craft a binary object containing a subquery to provide in place of valid credentials when calling the signin and signup operations via the RPC API with the bincode serialization format. The attacker could use that subquery to select, create, update and delete resources in SurrealDB, but they would not be able…
出典: NIST National Vulnerability Database NVD GitHub Advisory
AI要約
外部の AI が作成した要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
SurrealDBのバージョン1.5.5未満および2.0.0-beta.3未満では、RPC APIのサインインおよびサインアップ操作において、任意のオブジェクトが再帰的な検証を受けずに受け入れられる。このため、未認証の攻撃者がbincodeシリアル化フォーマットを使用してバイナリオブジェクトを作成し、サインイン/サインアップクエリの中に含まれるサブクエリとして送信できる。この結果、攻撃者はデータベースの所有者としてシステムユーザーセッションで操作を実行可能となる。
SurrealDBのRPC APIにおけるサインイン/サインアップ操作の入力が再帰的に検証されない脆弱性。
SurrealDBバージョン1.5.5未満および2.0.0-beta.3未満。
高。攻撃者がbincodeシリアル化フォーマットを通じて非認証で操作可能。
バージョン1.5.5もしくは2.0.0-beta.3以上にアップデートする。
情報なし
サーバーログを確認し、不審なクエリを特定する。
影響パッケージ
参照URL
- package github.com
- web github.com
- web vulncheck.com
- web nvd.nist.gov
- web github.com
- web github.com
- web github.com
- web surrealdb.com
- web surrealdb.com
- web surrealdb.com