CVE-2024-40636
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.
How to fix
- Steeltoe.Discovery.Eureka3.2.8 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Steeltoe.Discovery.EurekaNuGet | v < 3.2.8 | 3.2.8 |
| Steeltoe.Discovery.EurekaBaseNuGet | v ≤ 2.5.5 | — |
| Steeltoe.Discovery.ClientCoreNuGet | No range specified | — |
| Steeltoe.Discovery.ClientAutofacNuGet | v ≤ 2.5.5 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.