First published: Wed Nov 30 2022(Updated: )
### Impact Users running the Synthetic Monitoring agent in their local network are impacted. The authentication token used to communicate with the Synthetic Monitoring API is exposed thru a debugging endpoint. This token can be used to retrieve the Synthetic Monitoring checks created by the user and assigned to the agent identified with that token. The Synthetic Monitoring API will reject connections from already-connected agents, so access to the token does not guarantee access to the checks. ### Patches Fixed version is v0.12.0 Users are advised to rotate the agent tokens. After upgrading to version v0.12.0 or later, it's recommended that user's of distribution packages (e.g. Debian or RedHat and their derivatives) review the configuration stored in `/etc/synthetic-monitoring/synthetic-monitoring-agent.conf`, specifically the `API_TOKEN` variable which has been renamed to `SM_AGENT_API_TOKEN`. ### Workarounds With all previous versions, it's recommended that users review the agent settings and set the HTTP listening address in a manner that limits the exposure, for example, localhost or a non-routed network, by using the command line parameter `-listen-address`, e.g. `-listen-address localhost:4050`. ### References The following changes have been made to address this issue: - [Disable debug endpoint by default](https://github.com/grafana/synthetic-monitoring-agent/pull/373) - [Allow retrieving the token from the environment](https://github.com/grafana/synthetic-monitoring-agent/pull/374) - [Default to listening on localhost](https://github.com/grafana/synthetic-monitoring-agent/pull/375) ### For more information If you have any questions or comments about this advisory: * You can use the [Synthetic Monitoring Agent discussions](https://github.com/grafana/synthetic-monitoring-agent/discussions). * Issues should be reported in the [Synthetic Monitoring Agent issues](https://github.com/grafana/synthetic-monitoring-agent/issues). * Email us at [security@grafana.com](mailto:security@grafana.com).
Credit: security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Grafana Synthetic Monitoring Agent | <0.12.0 | |
go/github.com/grafana/synthetic-monitoring-agent | <0.12.0 | 0.12.0 |
go/github.com/grafana/synthetic-monitoring-agent/cmd/synthetic-monitoring-agent | <0.12.0 | 0.12.0 |
<0.12.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-46156 is a vulnerability in the Synthetic Monitoring Agent for Grafana's Synthetic Monitoring application that allows unauthorized access to the agent.
Users running the Synthetic Monitoring Agent prior to version 0.12.0 in their local network are impacted by CVE-2022-46156.
The severity of CVE-2022-46156 is high with a severity value of 3.3.
To fix CVE-2022-46156, users should update their Synthetic Monitoring Agent to version 0.12.0 or newer.
The Common Weakness Enumeration (CWE) ID for CVE-2022-46156 is CWE-489 and CWE-749.