Insertion of Sensitive Information into Log File Affecting github.com/hashicorp/go-retryablehttp package, versions <0.7.7


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMHASHICORPGORETRYABLEHTTP-7362036
  • published 25 Jun 2024
  • disclosed 24 Jun 2024
  • credit Danny Hershko Shemesh, Dan Luhring

How to fix?

Upgrade github.com/hashicorp/go-retryablehttp to version 0.7.7 or higher.

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information into Log File due to not sanitizing urls when writing them to the log file. This could lead to an attacker writing sensitive HTTP basic auth credentials to the log file.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
5.9 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    None
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    High
  • Integrity (SI)
    None
  • Availability (SA)
    None