Incorrect Implementation of Authentication Algorithm Affecting github.com/prometheus/exporter-toolkit/web package, versions <0.7.2>=0.8.0 <0.8.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.2% (86th percentile)

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 IDSNYK-GOLANG-GITHUBCOMPROMETHEUSEXPORTERTOOLKITWEB-3150818
  • published30 Nov 2022
  • disclosed29 Nov 2022
  • creditLei Wan

Introduced: 29 Nov 2022

CVE-2022-46146  (opens in a new tab)
CWE-303  (opens in a new tab)

How to fix?

Upgrade github.com/prometheus/exporter-toolkit/web to version 0.7.2, 0.8.2 or higher.

Overview

github.com/prometheus/exporter-toolkit/web is an utility package to build exporters

Affected versions of this package are vulnerable to Incorrect Implementation of Authentication Algorithm which makes it possible for an attacker with access to a Prometheus web.yml file and users' bcrypted passwords to authenticate against Prometheus. Exploiting this vulnerability is possible due to a security bypass in the built-in authentication cache.

CVSS Scores

version 3.1