Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
cybernieuws.nl Cybersecurity en informatiebeveiling nieuws alerts live · 12 min 166 bronnen 1 kritiek 43 vandaag
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-50137

NONE Gepubliceerd: CWE-862

Beschrijving NL

Budibase is een open source low-code platform. Voorafgaand aan 3.39.0 kan een anonieme aanvaller die een werkruimte-id (app_...) en een S3-brongegevensbron-id (ds_...) kent of kan opsommen, dit eindpunt zonder autorisatie aanroepen en een vooraf ondertekende URL van 15 minuten verkrijgen die op de IAM-identiteit van het slachtoffer is geslagen. Het eindpunt retourneert ook de publicUrl, zodat de aanvaller precies weet waar zijn PUT landt. Omdat de bucket door de aanvaller wordt beheerd, kan de aanvaller naar elke bucket schrijven waarnaar die IAM-referenties kunnen schrijven, niet alleen naar de bucket waarvoor de gegevensbron is geconfigureerd. De Budibase-serverroute POST /api/attachments/: datasourceId/url (packages/server/src/api/routes/static.ts) wordt geregistreerd met alleen de recaptcha middleware. Er is geen geautoriseerde(...) middleware in de keten. De controller (packages/server/src/api/controllers/static/index.ts:: getSignedUploadURL) zoekt de gevraagde gegevensbron op, instantieert een AWS S3-client met de opgeslagen accessKeyId/secretAccessKey van de gegevensbron en retourneert een AWS-handtekening V4 vooraf ondertekende PutObjectCommand-URL voor de door de beller geleverde bucket en sleutel. De bucket is niet vastgemaakt aan de geconfigureerde bucket van de gegevensbron. De werkruimtecontext die sdk.datasources.get vereist, is afkomstig van getWorkspaceIdFromCtx (packages/backend-core/src/utils/utils.ts) uit: de x-budibase-app-id header, de JSON body appId, een padsegment dat begint met het werkruimtevoorvoegsel, of ?appId =. auth.buildAuthMiddleware ([], {publicAllowed: true }) wordt voor dit alles uitgevoerd en staat expliciet anonieme verzoeken toe. De "toegang tot dev-preview weigeren" -tak van de middleware van currentWorkspace wordt alleen geactiveerd onder isBrowser (ctx) && ! isApiKey (ctx); isBrowser controleert de geparseerde User-Agent op een erkende browser, dus elke niet-browserclient (curl, de meegeleverde PoC, elke tool die geen browser-UA instelt) is geen van beide en bereikt ook dev-werkruimten. Deze kwetsbaarheid is opgelost in 3.39.0.

Origineel (Engels) tonen

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.

References