Skip to main content

Insertion of Sensitive Information into Log File

CVE-2023-45825

Severity Medium
Score 5.5/10

Summary

ydb-go-sdk is a pure Go native and database/sql driver for the YDB platform. In versions v3.48.6 through v3.53.2. If you use a custom credentials object (implementation of interface Credentials it may leak into logs. This happens because this object could be serialized into an error message using "fmt.Errorf("something went wrong (credentials: %q)", credentials)" during connection to the YDB server. If such logging occurred, a malicious user with access to logs could read sensitive information (i.e. credentials) information and use it to get access to the database. Users are advised to upgrade. Users unable to upgrade should implement the "fmt.Stringer" interface in your custom credentials type with explicit stringify of object state.

  • LOW
  • LOCAL
  • NONE
  • UNCHANGED
  • NONE
  • LOW
  • HIGH
  • 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