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 クレートは修正版が確認できていないため、最新の情報を確認してください。
SurrealDBのRPC APIにおけるサインイン/サインアップ操作の入力が再帰的に検証されない脆弱性。
SurrealDBバージョン1.5.5未満および2.0.0-beta.3未満。
高。攻撃者がbincodeシリアル化フォーマットを通じて非認証で操作可能。
バージョン1.5.5もしくは2.0.0-beta.3以上にアップデートする。
情報なし
サーバーログを確認し、不審なクエリを特定する。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| rustsurrealdb |
All versions→ Not listed |
Not listed |
| crates.iosurrealdb |
All versions→ Not listed |
Not listed |
| crates.iosurrealdb-core |
< 1.5.2→ 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
- advisory disclosure@vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch disclosure@vulncheck.com
- web github.com
- web github.com
- web github.com
- web surrealdb.com
- web surrealdb.com
- web surrealdb.com