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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.4%top 63.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
NuGetsteeltoe.discovery.clientautofacno fix listedGHSA-vmcp-66r5-3pcp
NuGetsteeltoe.discovery.clientcoreno fix listedGHSA-vmcp-66r5-3pcp
NuGetsteeltoe.discovery.eureka3.2.8GHSA-vmcp-66r5-3pcp
NuGetsteeltoe.discovery.eurekabaseno fix listedGHSA-vmcp-66r5-3pcp

Affected products (as reported)

VendorProductVersions
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

References