Vulnerability · Published Jul 17, 2024 · Assigned by GitHub_M
CVE-2024-40636Basic Auth Credential Leakage to Logs After Fetch Registry Error in Steeltoe.Discovery.Eureka with Peer Awareness
Medium 5.3
In plain English
A medium-severity sensitive data in logs in security-advisories from SteeltoeOSS. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Steeltoe is an open source project that provides a collection of libraries that helps users build production-grade cloud-native applications using externalized configuration, service discovery, distributed tracing, application management, and more. When utilizing multiple Eureka server service URLs with basic auth and encountering an issue with fetching the service registry, an error is logged with the Eureka server service URLs but only the first URL is masked. The code in question is `_logger.LogError(e, "FetchRegistry Failed for Eureka service urls: {EurekaServerServiceUrls}", new Uri(ClientConfig.EurekaServerServiceUrls).ToMaskedString());` in the `DiscoveryClient.cs` file which may leak credentials into logs. This issue has been addressed in version 3.2.8 of the Steeltoe.Discovery.Eureka nuget package.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| NuGet | steeltoe.discovery.clientautofac | no fix listed | GHSA-vmcp-66r5-3pcp |
| NuGet | steeltoe.discovery.clientcore | no fix listed | GHSA-vmcp-66r5-3pcp |
| NuGet | steeltoe.discovery.eureka | 3.2.8 | GHSA-vmcp-66r5-3pcp |
| NuGet | steeltoe.discovery.eurekabase | no fix listed | GHSA-vmcp-66r5-3pcp |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| SteeltoeOSS | security-advisories | < 3.2.8 |
Weakness: CWE-532 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N