Skip to main content

Insertion of Sensitive Information into Log File

CVE-2024-40636

Severity Medium
Score 5.3/10

Summary

Steeltoe is an open-source project that provides a collection of libraries that help 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 authentication and encountering an issue 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 affects versions prior to 3.2.8 of the Steeltoe.Discovery.Eureka nuget package.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • LOW
  • NONE

CWE-532 - Insertion of Sensitive Information into Log File

It's quite common for applications to save logs. For example, whenever a user requests a resource from a particular website, the web server writes information about the request to a log file. These files are helpful for identifying abnormal system activity, bugs, and evaluating the security controls of the application. Security of log files is critical for the overall security of the application and its confidential resources. An application that lacks appropriate logging levels can expose sensitive user data and system information stored on the log files to malicious users. This info can be exploited to compromise your system.

Advisory Timeline

  • Published