GHSA-2RM5-WF7W-8J57
IP Address Spoofing via Unconditional Proxy Trust
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-2RM5-WF7W-8J57 divulgada · CVSS 5.3 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
NocoDB enabled Express's proxy trust unconditionally at startup, so the client address of every request was taken from caller-supplied `X-Forwarded-For` headers even when no trusted proxy sat in front of the instance. Any caller, including an anonymous public-form submitter, could choose the source IP address recorded in the audit log.
Details
The server entry files (`run/local.ts`, `run/docker.ts` and their Enterprise counterparts) called `server.enable('trust proxy')` with no way to turn it off, so Express derived `req.ip`, which audit records store, from the forwarding headers of each request. Other consumers, among them telemetry, exception logs and the public API rate limiter, read the address through the `request-ip` middleware, which parses the same headers on its own. The fix, in `Noco.ts` and `utils/trustProxy.ts`, turns proxy trust off by default and enables it only for the topology an operator sets in `NC_TRUST_PROXY`, and every consumer now reads the trust-aware `req.ip`.
Impact
No authentication is required. On an instance reachable directly, or through a proxy that passes client-supplied forwarding headers on, a caller could write an arbitrary source IP address into the audit log and other request logs, misleading investigation and attribution, and could evade the per-address limit of the public API rate limiter. No authentication bypass or IP-based access-control bypass is involved. After the fix, setting `NC_TRUST_PROXY=true` without a proxy that overwrites `X-Forwarded-For` restores the earlier behaviour, by design.
Credit
This issue was reported by @5255fgh https://github.com/5255fgh (白墨).
Desglose de métricas
Estado del parche por paquete
La fuente no informa paquetes ni versiones corregidas.
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/nocodb/nocodb/security/advisories/GHSA-2rm5-wf7w-8j57Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
