Budibaseに保存型XSSの脆弱性、管理者画面で不正なスクリプトが実行されるおそれ
概要
Budibaseのビルダー画面で、一般ユーザーが外部データソースに保存した文字列がHTMLとして扱われ、より高い権限のビルダーや管理者のセッションでスクリプトが実行されるおそれがあります。3.50.0より前の版が対象で、3.50.0および4.0.0で修正されています。修正版への更新を急いでください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Budibaseのビルダー画面で、一般ユーザーが外部データソースに保存した文字列がHTMLとして扱われ、より高い権限のビルダーや管理者のセッションでスクリプトが実行されるおそれがあります。3.50.0より前の版が対象で、3.50.0および4.0.0で修正されています。修正版への更新を急いでください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| Budibasebudibase | — | 記載なし |
| npm@budibase/server |
すべての版→ 記載なし |
記載なし |
この記録には修正版の版が載っていません。修正版の有無と版は、本文か参照URLのベンダーの勧告で確かめてください。
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Description
Summary
A low-privileged application end-user (role BASIC - not a builder or admin, and on a public data-collection form, an unauthenticated visitor) can store an HTML/JavaScript payload in ordinary row data. When a builder or admin later opens that table in the Budibase Builder and evaluates any Handlebars binding whose Preview surfaces the value (the Data-section Formula column editor, or any binding drawer), the stored value is rendered as raw HTML and the attacker's JavaScript executes in the Builder's origin.
The Builder SPA is served by nginx with no Content-Security-Policy (the CSP middleware only decorates the server-rendered published-app document, not /builder/). The injected script therefore runs unrestricted in the highest-trust surface of the product - the admin/builder session that can create datasources, run server-side JavaScript via automations, read and modify every table, and manage users. This is a cross-privilege stored XSS (app end-user → builder/admin), i.e. full workspace takeover, not self-XSS.
Details
Root cause 1 - the escaper is a no-op.
packages/frontend-core/src/utils/jsonFormatter.ts (format()):
jsonString = jsonString
.replace(/&/g, "&") // no-op: replaces "&" with "&" (should be "&")
.replace(//g, ">") // no-op (should be ">")
return jsonString.replace(
/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com