GHSA-3qjf-qh38-x73v
Unauthenticated Miniflux user can bypass allowed networks check to obtain Prometheus metrics
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Go | miniflux.app/v2 | < 2.0.43 | 2.0.43 |
| Go | miniflux.app | <= 1.0.46 | no fix listed |
Details
As written in the advisory (Markdown source, shown as plain text).
### Impact
An unauthenticated user can retrieve Prometheus metrics from a publicly reachable Miniflux instance where the `METRICS_COLLECTOR` [configuration option](https://miniflux.app/docs/configuration.html#metrics-collector) is enabled and `METRICS_ALLOWED_NETWORKS` is set to `127.0.0.1/8` (the default).
### Patches
PR #1745 fixes the problem. Available in Miniflux >= 2.0.43.
### Workarounds
Set `METRICS_COLLECTOR` to `false` (default) or run Miniflux behind a trusted reverse-proxy.
### References
- https://miniflux.app/docs/configuration.html#metrics-collector
- https://miniflux.app/docs/configuration.html#metrics-allowed-networks
References
External links from the advisory. They lead to third-party sites.
- https://github.com/miniflux/v2/security/advisories/GHSA-3qjf-qh38-x73v
- https://nvd.nist.gov/vuln/detail/CVE-2023-27591
- https://github.com/miniflux/v2/pull/1745
- https://github.com/miniflux/v2
- https://github.com/miniflux/v2/releases/tag/2.0.43
- https://miniflux.app/docs/configuration.html#metrics-collector