Skip to content

Vulnerability in surrealdb

CVE-2024-58362 First seen on SecPulse

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

SurrealDBのRPC APIで、signin・signup操作に任意のオブジェクトを渡せる問題が見つかりました。認証情報の代わりに埋め込まれたサブクエリが、データベース所有者のSIGNIN・SIGNUPクエリ内で実行されるおそれがあり、CVSSの深刻度は High(8.8)です。surrealdb-core は 1.5.2 で修正されていますが、surrealdb クレートは修正版が確認できていないため、最新の情報を確認してください。

What is the problem

SurrealDBのRPC APIにおけるサインイン/サインアップ操作の入力が再帰的に検証されない脆弱性。

Affected scope

SurrealDBバージョン1.5.5未満および2.0.0-beta.3未満。

Severity

高。攻撃者がbincodeシリアル化フォーマットを通じて非認証で操作可能。

How to fix

バージョン1.5.5もしくは2.0.0-beta.3以上にアップデートする。

Workaround

情報なし

Detection

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

Affected packages

PackageAffected → Fixed
rustsurrealdb
All versions→ Not listed
crates.iosurrealdb
All versions→ Not listed
crates.iosurrealdb-core
< 1.5.2→ 1.5.2
Original description The description as published by the source.

SurrealDB before 1.5.5 (and 2.0.0-beta before 2.0.0-beta.3) accepts an arbitrary object in the signin and signup operations of the RPC API without recursively validating it for non-computed values. When a record access method defines a SIGNIN or SIGNUP query and the RPC API is exposed to untrusted users, an unauthenticated attacker can encode a binary object containing a subquery using the bincode serialization format and supply it in place of credentials. The subquery is then executed within the database owner's SIGNIN/SIGNUP query under a system user session with the editor role, allowing the attacker to select, create, update, and delete non-IAM resources (though not view the query results directly, and not affect IAM resources, which require the owner role).

Source: NIST National Vulnerability Database NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details