English version →
データベース/ストレージ
CVE-2024-58362 high CVSS 8.8

Untrusted Query Object Evaluation in RPC API

概要

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以上にアップデートする。

🛡️ 暫定回避

情報なし

🔍 検知方法

サーバーログを確認し、不審なクエリを特定する。

影響パッケージ

rust surrealdb
[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]
crates.io surrealdb
[{"type":"SEMVER","events":[{"introduced":"2.0.0-beta.1"},{"fixed":"2.0.0-beta.3"}]}]
crates.io surrealdb-core
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.5.2"}]}]

参照URL

当サイトでは、アクセス解析と広告の効果測定のために Cookie を使います。株式会社Game のサイト共通の設定です。 詳しく