GHSA-XJP4-FM2R-36G9
Public statistics endpoints expose host and cluster operational metadata
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-XJP4-FM2R-36G9 divulgada · CVSS 5.3 (GitHub) | |
| Remediación | Parche v0.13.45 | github.com/daptin/daptin · 0 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
Daptin's main `GET /statistics` endpoint returns operational diagnostics without authentication. The route is registered before authentication middleware, and the statistics handler does not independently authorize access. This was previously documented as a public diagnostics endpoint; access is now being restricted to administrators as a hardening measure.
Verified exposure and impact
An unauthenticated request can return hostname, OS/kernel information, uptime, CPU and memory information, disk I/O counters, load averages, process count and details for the first ten enumerated processes, database connection-pool statistics, and web request metrics. Some host information, including logged-in users and sensors, is platform-dependent.
Olric data includes member and coordinator addresses, the local membership view, aggregate DMap and PubSub counters, and partition counts. It does not include DMap names or an inventory of authentication/token caches, cached values, or complete routing tables. Disk partitions and mount points are not returned. Process command lines are not returned, and the listed processes are not ranked by resource usage.
This is operational information disclosure that can assist reconnaissance. The investigation did not demonstrate an authorization bypass, credential disclosure, direct access to Olric, code execution, or an integrity/availability impact. Security of the underlying services must not depend on hiding these details.
Subsites also expose web metrics at `/statistics` and `/stats`; these are covered by the same new administrator access requirement.
Reproduction
On an affected installation, without credentials:
curl -i http://<daptin-host>:6336/statisticsThe main endpoint returns HTTP 200 and a JSON object containing `cpu`, `db`, `disk`, `host`, `load`, `memory`, `olric`, `process`, and `web`. Hostname is at `host.info.hostname`; cluster member addresses are at `olric.members` when Olric statistics are available. An invalid bearer token also returned HTTP 200 in the isolated reproduction.
The source path was verified in releases `v0.13.36` and `v0.13.44`, and in the pre-fix checkout at `b769feef`.
Remediation status
The fix is committed as `78ea8b17b49811d93415833ce1aff40a0d82dde5` https://github.com/daptin/daptin/commit/78ea8b17b49811d93415833ce1aff40a0d82dde5 (Restrict statistics endpoints to administrators) and released in v0.13.45 https://github.com/daptin/daptin/releases/tag/v0.13.45. Upgrade to v0.13.45 or later.
The fix registers the main endpoint after authentication and resource initialization, then uses current persisted usergroup membership and Daptin's operation-specific permission check to require administrator access before collecting metrics. Subsite `/statistics` and `/stats` use the same authorization guard. Guests and non-administrators receive HTTP 403 without statistics. Removing administrator membership revokes access on the next request, without waiting for session-cache expiry. Authorization transactions end before metrics collection.
Until a patched build is deployed, operators can restrict the metrics routes at their ingress or private network boundary. Use `/ping` for liveness and `/ready` for readiness checks.
Validation
The full ordinary Go test suite, focused statistics/subsite tests, `go vet ./server`, shell syntax validation for the updated monitoring caller, and `git diff --check` passed. The isolated HTTP E2E test passed for anonymous and invalid-token denial, ordinary-user denial, administrator access, membership grant, and immediate revocation through normal Daptin relationship resources. Monitoring documentation and existing statistics consumers were updated to send administrator bearer tokens.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gogithub.com/daptin/daptin |
Corregida | v0.13.45 | 0 d | v0.13.57 no afectada |
0.13.45v0.13.45Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/daptin/daptin/security/advisories/GHSA-xjp4-fm2r-36g9Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
