Advisory

GHSA-vmcp-66r5-3pcp

Also known as: CVE-2024-40636

Summary

Steeltoe Leaks Basic Auth Credentials to Logs After Fetch Registry Error

Details

Summary
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.

Details
Package: Steeltoe.Discovery.Eureka
Package version: 3.2.1
Branch: "release/3.2"
File name: DiscoveryClient.cs
Line number: 325
Code in question: _logger.LogError(e, "FetchRegistry Failed for Eureka service urls: {EurekaServerServiceUrls}", new Uri(ClientConfig.EurekaServerServiceUrls).ToMaskedString());

Error message in logs: FetchRegistry Failed for Eureka service urls: https://****:****@eureka1.com:443/eureka,https://user:[email protected]:443/eureka

I thought new Uri(clientOptions.EurekaServerServiceUrls) would throw a UriFormatException since there are multiple URLs but my logs are showing two URLs regardless.

PoC

  1. Set Eureka config with multiple server URLs with basic auth
  2. Apologies for not being more descriptive for this step, but I believe we would just need to trigger an exception in FetchFullRegistryAsync.
  3. Check the logs and should see the error

Impact
Vulnerability: Credential leakage in the logs
Who does it impact?: Users who are using peer awareness with Spring Eureka

Severity

Low Basis: The source's own band: LOW

Dates

Published
2024-07-17 16:00 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

Steeltoe.Discovery.Eureka

NuGet · All systems

Affected

  • introduced 0, fixed 3.2.8 (ecosystem)

Fixed versions

3.2.8

Fix

The export has no generic command for this ecosystem.

Steeltoe.Discovery.EurekaBase

NuGet · All systems

Affected

  • introduced 0, last affected 2.5.5 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Steeltoe.Discovery.ClientCore

NuGet · All systems

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Steeltoe.Discovery.ClientAutofac

NuGet · All systems

Affected

  • introduced 0, last affected 2.5.5 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences