{"id":"XE-16758","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"657","source_url":"https://github.com/xeprotocol/xe/issues/657","reporter_id":2920,"title":"[Medium] Shipped monitoring stack exposes unauthenticated Prometheus lifecycle API and Alertmanager on all interfaces","area":"ops-testnet","claimed_tier":"medium","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"open","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-17T05:47:03.719085+00:00","updated_at":"2026-11-22T23:26:16.664606+00:00","source_created_at":"2026-11-17T05:46:15+00:00","told_at":"2026-11-22T23:26:16.679386+00:00","status_changed_at":"2026-11-22T23:26:16.670115+00:00","url":"https://bounty.xe.network/XE-16758","body":"## Summary\nThe shipped monitoring compose (`deploy/monitoring/compose.yml`) binds Prometheus, Alertmanager, and Grafana to `0.0.0.0` with no authentication anywhere. `--web.enable-lifecycle` is explicitly enabled (not a Prometheus default): anyone reaching port 9090 can `POST /-/quit` to shut Prometheus down or `POST /-/reload` to reload its config, unauthenticated. Alertmanager has no auth mechanism configured: anyone reaching port 9093 can create silences suppressing alerts -- including the critical consensus/supply alerts (`deploy/monitoring/alerts.yml`). The Grafana password falls back to `changeme` when `GF_ADMIN_PASSWORD` is unset.\n\n## Root Cause\n- `deploy/monitoring/compose.yml:5`: Prometheus `9090:9090`.\n- `:14`: `--web.enable-lifecycle` (explicitly enabled).\n- `:19`: Alertmanager `9093:9093`, no auth.\n- `:30`, `:32`: Grafana `3000:3000`, `GF_SECURITY_ADMIN_PASSWORD: ${GF_ADMIN_PASSWORD:-changeme}`.\n\n## Impact\nAn attacker can blind the team's monitoring (shut down Prometheus, silence critical alerts) -- a force multiplier during an attack on the network. #178 proves the team deploys this stack on a public host (Grafana live at 45.77.226.208:3000), so the Prometheus/Alertmanager ports are exposed by the same deployment pattern.\n\n## Verification\nSource-level at HEAD `8cc209d` (testnet-0006). The compose file is as quoted above.\n\n## Note on related reports\n#178 covers Grafana anonymous access/SSRF on the live host -- it does not cover the Prometheus lifecycle API or Alertmanager auth. #580 covers scrape config only. The Prometheus/Alertmanager angles are distinct.\n\n## Suggested fix\nRemove `--web.enable-lifecycle` (or put Prometheus behind an authenticated reverse proxy), bind all three services to loopback / put behind a VPN, and fail to start Grafana when no admin password is set instead of defaulting to `changeme`.","patch_refs":[],"thread":[{"id":18869,"source":"desk","source_ref":"reply:16546","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-16758 and says what differs; it is read like any other.","created_at":"2026-11-22T23:26:16.664606+00:00"}]}