本文へ移動
English version →
中 6.5

Query Context Trusted from Client Bypasses Data Access Controls

GHSA-433r-hw2v-rv9g SecPulse初出

概要

Summary

An authenticated, low-privilege user could read data from databases or tables they were not permitted to access. Exploitation requires a logged-in session but not admin privileges....

影響パッケージ

種類パッケージ影響を受ける版直った版
metabase/metabase-core
>= 1.54.0, < 1.54.23
1.54.23
metabase/metabase-core
>= 1.55.0, < 1.55.23
1.55.23
metabase/metabase-core
>= 1.56.0, < 1.56.23
1.56.23
metabase/metabase-core
>= 1.57.0, < 1.57.17
1.57.17
metabase/metabase-core
>= 1.58.0, < 1.58.12
1.58.12
metabase/metabase-core
>= 1.59.0, < 1.59.6
1.59.6
metabase/metabase-core
>= 1.60.0, < 1.60.1
1.60.1
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Summary

An authenticated, low-privilege user could read data from databases or tables they were not permitted to access. Exploitation requires a logged-in session but not admin privileges.

Details

Two related paths in query handling trusted client-supplied fields in the request body:

  • A query with a permitted source-table could wrap a source-query whose embedded SQL fragment was executed by thedriver without the outer permission check inspecting it.
  • The card creation pipeline accepted a client-supplied permission context attached to dataset_query and honored it during execution instead of deriving the requesting user'sactual authorization from group memberships and sandboxing configuration.

In both cases the caller could execute native SQL against tables or databases outside their granted scope. The fix re-derives the query context on the server and validates query

parameters at the API boundary so that the embedded SQL and the permission context are no longer read from the request.

Patches

The fix is available in the following versions and above:

  • 1.54.23, 0.54.23
  • 1.55.23, 0.55.23
  • 1.56.23, 0.56.23
  • 1.57.17, 0.57.17
  • 1.58.12, 0.58.12
  • 1.59.6, 0.59.6
  • 1.60.1, 0.60.1

Credit

Aikido Security — Jorian Woltjer, Rein Daelman, Robbe Verwilghen

出典: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

参照URL

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