Information Exposure Affecting github.com/grafana/agent/cmd/agent Open this link in a new tab package, versions <0.20.1 >=0.21.0 <0.21.2


0.0
medium
  • Attack Complexity

    Low

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • snyk-id

    SNYK-GOLANG-GITHUBCOMGRAFANAAGENTCMDAGENT-2313645

  • published

    9 Dec 2021

  • disclosed

    9 Dec 2021

  • credit

    Unknown

How to fix?

Upgrade github.com/grafana/agent/cmd/agent to version 0.20.1, 0.21.2 or higher.

Overview

github.com/grafana/agent/cmd/agent is a Grafana Agent is a telemetry collector for sending metrics, logs, and trace data to the opinionated Grafana observability stack.

Affected versions of this package are vulnerable to Information Exposure via inline secrets defined within a metrics instance config, which are exposed in plaintext over two endpoints: metrics instance configs defined in the base YAML file are exposed at /-/config and metrics instance configs defined for the scraping service are exposed at /agent/api/v1/configs/:key. Inline secrets will be exposed to anyone being able to reach these endpoints. If HTTPS with client authentication is not configured, these endpoints are accessible to unauthenticated users. This does not apply for non-inlined secrets, such as *_file based secrets.