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

SurrealDB: Full Table Permissions by Default

概要

SurrealDB: Full Table Permissions by Default

原文の説明

取得元が公開している説明をそのまま載せています (多くは英語)。

Default table permissions in SurrealDB were FULL instead of NONE. This would lead to tables having FULL permissions for SELECT, CREATE, UPDATE and DELETE unless some other permissions were specified via the PERMISSIONS clause.

We have decided to treat this behaviour as a vulnerability due to its security implications, especially considering the lack of specific documentation and potential for confusion due to the INFO FOR DB statement previously not displaying default permissions. Treating it as a bug fix provides justification for a change in default behavior outside of a major release.

Impact

Any client authorized to query data in a SurrealDB instance will have full access to any tables that were defined with no explicit permissions and that are within its authorization scope (i.e. namespace or database), including creating, reading, updating and deleting data. This is specially relevant for SurrealDB instances allowing guest access with publicly exposed interfaces (e.g. HTTP REST API or WebSocket API), since a remote unauthenticated user may gain full access to any tables that were defined without any explicit permissions. Tables that were defined with explicit permissions using the PERMISSIONS clause are not affected.

Patches

  • Version 1.0.1 includes a patch for this specific issue. Later releases will also include the patch.
  • Version 1.1.0-beta.1 and latest nightly releases already include the patch for this issue.

In patched versio…

出典: NIST National Vulnerability Database NVD GitHub Advisory

AI要約

外部の AI が作成した要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

SurrealDBの1.0.1より前のバージョンでは、デフォルトのテーブル権限がNONEではなくFULLに設定されているため、明示的な権限設定がなくても、テーブルに対してSELECT、CREATE、UPDATE、DELETE操作が可能です。これにより、データベースアクセス権を持つ攻撃者や、公開されているインスタンスの認証されていないユーザーが、保護されていないテーブルで無制限の操作を行うことができます。

❓ 何が問題か

SurrealDBのデフォルトテーブル権限の設定ミスによるアクセス権限のミス

📍 影響範囲

SurrealDBのバージョン1.0.1より前のデータベース

🔥 重要度

高い危険性があり、未許可のユーザーによるデータ操作が可能になります。

🔧 修正方法

バージョン1.0.1以降にアップデートし、デフォルトのテーブル権限を見直す。

🛡️ 暫定回避

アクセス制限の強化や権限設定を手動で行う。

🔍 検知方法

SurrealDBのバージョンを確認し、テーブル権限の設定を監査する。

影響パッケージ

rust surrealdb
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.1"}]}]

参照URL

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