Authentication bypass via ambiguous cache-key concatenation
Published Nov 29, 2022 · Updated Aug 3, 2024
Authentication bypass in Prometheus Exporter Toolkit before 0.7.2 and 0.8.0 through 0.8.1 allows remote attackers to access protected endpoints. The web handler concatenates the username, stored hash, and supplied password without boundaries before encoding the authentication-cache key, allowing distinct credential triples to share a cached success. The attack requires read access to a bcrypt hash in web.yml and then grants unauthorized access to endpoints protected by the toolkit.
Summary
What happened
Authentication bypass in Prometheus Exporter Toolkit before 0.7.2 and 0.8.0 through 0.8.1 allows remote attackers to access protected endpoints. The web handler concatenates the username, stored hash, and supplied password without boundaries before encoding the authentication-cache key, allowing distinct credential triples to share a cached success. The attack requires read access to a bcrypt hash in web.yml and then grants unauthorized access to endpoints protected by the toolkit.
The record
- CVE
- CVE-2022-46146
- Published
- Nov 29, 2022
- Updated
- Aug 3, 2024
- Vendor
- Prometheus
- Product
- Exporter Toolkit
- Classifications
- CWE-303, T1190
- Attack vector
- network
- Privileges
- admin
Timeline
How it unfolded
- Nov 29, 2022CVE publishedPublication date reported by the CVE source.
- Aug 3, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 0.7.2
- Affected versionversion=>= 0.8.0, < 0.8.2
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- TestByPassBasicAuthVuln regression testproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo