GHSA-G85V-3GPX-4GW5
Cookie values and invalid form field values written to error logs
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-G85V-3GPX-4GW5 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Impact
Gotenberg wrote secrets a caller sent into its logs, where anyone who reads the logs, traces or a log pipeline could reuse them:
- Chromium cookies (8.4.0 and later). The `cookies` form field of the Chromium routes logged each cookie's value at the debug level once set. When Chromium refused a cookie, such as one whose path does not start with `/` or a `__Host-` cookie, the value went into the error, which the access log writes at the error level whatever `--log-level` is, and into the span status of the request.
- Invalid form field values (8.0.0 and later). A form field whose value did not validate put the whole value into the error the access log writes at the error level: a `cookies` array missing a domain, an `extraHttpHeaders` object holding an `Authorization` header next to a value that is not a string.
The caller's response is unchanged: a 400 still names the value the caller sent.
Exploiting this needs read access to logs or traces that the deployment does not mean to give to holders of the credentials, such as a log processor or archive. The secrets are the caller's own; no anonymous endpoint exposes them.
Patches
Gotenberg 9.4.0:
- logs and returns a cookie by its index, name, domain, path and flags, never its value;
- keeps invalid form field values out of logged errors, and names them in the 400 only;
- answers 400 to a cookie Chromium refuses, naming it by index and name, where it answered 500.
Gotenberg 8 receives no further releases: upgrade to 9.
Workarounds
Keep `--log-level` (`LOG_LEVEL`) above debug, and restrict access to error logs and traces to those already trusted with the cookies and headers callers send. `--chromium-debug-protocol` logs every DevTools message whole, credentials included, by design: keep it off in production.
Credits
Reported by @judgelight.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gogithub.com/gotenberg/gotenberg/v8 |
Sin parche | — | — | v8.40.0 afectada |
9.4.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/gotenberg/gotenberg/security/advisories/GHSA-g85v-3gpx-4gw5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
