🔍 CVE-2026-50137

9.4
CVSS Score
CRITICAL
2026-06-26
2026-06-30 19:49
✅ 완료

🇰🇷 한글 설명

Budibase 3.39.0 미만 버전에서 발생하는 취약점으로, 인증되지 않은 공격자가 워크스페이스 및 데이터소스 ID를 알 경우 S3 프리사인드(Pre-signed) URL을 생성할 수 있습니다. 공격자는 이를 통해 피해자의 IAM 권한을 사용하여 설정된 버킷뿐만 아니라 해당 권한이 허용하는 모든 S3 버킷에 임의의 파일을 업로드할 수 있습니다.

💡 쉬운 설명

로그인하지 않은 외부인이 Budibase 서버의 권한을 빌려 사용자의 클라우드 저장소(S3)에 몰래 파일을 올릴 수 있는 보안 구멍이 발견되었습니다. 이로 인해 공격자가 기업의 중요한 클라우드 저장소에 악성 파일을 심거나 데이터를 조작할 위험이 있습니다.

🇺🇸 원문 (English)

Budibase is an open-source low-code platform. Prior to 3.39.0, an anonymous attacker who knows or can enumerate a workspace id (app_...) and an S3-source datasource id (ds_...) can call this endpoint with no auth and obtain a 15-minute pre-signed PUT URL minted on the victim's IAM identity. The endpoint also returns the publicUrl so the attacker knows exactly where their PUT lands. Because bucket is attacker-controlled, the attacker can write to any bucket those IAM credentials can write to, not only the bucket the datasource was configured for. The Budibase server route POST /api/attachments/:datasourceId/url (packages/server/src/api/routes/static.ts) is registered with only the recaptcha middleware. There is no authorized(...) middleware in the chain. The controller (packages/server/src/api/controllers/static/index.ts::getSignedUploadURL) looks the requested datasource up, instantiates an AWS S3 client with the datasource's stored accessKeyId / secretAccessKey, and returns an AWS Signature V4 pre-signed PutObjectCommand URL for the caller-supplied bucket and key. The bucket is not pinned to the datasource's configured bucket. The workspace context required by sdk.datasources.get is sourced by getWorkspaceIdFromCtx (packages/backend-core/src/utils/utils.ts) from any of: the x-budibase-app-id header, the JSON body appId, a path segment that begins with the workspace prefix, or ?appId=. auth.buildAuthMiddleware([], { publicAllowed: true }) runs before any of this and explicitly allows anonymous requests. The currentWorkspace middleware's "deny access to dev preview" branch only triggers under isBrowser(ctx) && !isApiKey(ctx); isBrowser checks the parsed User-Agent for a recognised browser, so any non-browser client (curl, the supplied PoC, any tool not setting a browser UA) is neither and reaches dev workspaces too. This vulnerability is fixed in 3.39.0.

📍 영향받는 시스템

Budibase versions prior to 3.39.0

⚔️ 공격 벡터

인증 없이 특정 API 엔드포인트(POST /api/attachments/:datasourceId/url)를 호출하여 S3 PUT URL 획득

🛡️ 대응 방법

Budibase를 최신 버전인 3.39.0 이상으로 즉시 업데이트하십시오.

🔧 검증 코드

출력된 버전 정보가 3.39.0 미만인 경우 해당 취약점에 노출된 상태입니다.

Shell / Script
curl -s http://<budibase-host>/api/health | grep -i 'version' || echo 'Check version via CLI or UI'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

💻 영향받는 소프트웨어

IBM Verify Identity Access