Vulnerabilities

1 via 1 paths

Dependencies

72

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

medium severity
new

Insufficiently Protected Credentials

  • Vulnerable module: @hapi/wreck
  • Introduced through: seneca@3.38.0

Detailed paths

  • Introduced through: @seneca/doc@voxgig/seneca-doc seneca@3.38.0 @hapi/wreck@17.2.0

Overview

@hapi/wreck is a HTTP Client Utilities library.

Affected versions of this package are vulnerable to Insufficiently Protected Credentials due to leaking the sensitive Proxy-Authorization header across cross-hostname redirects. An attacker can obtain sensitive proxy credentials by inducing a redirect to a malicious host, which receives the unstripped Proxy-Authorization header.

Note:

This is only exploitable if redirect following is explicitly enabled by setting the redirects option to a positive integer.

Workaround

This vulnerability can be mitigated by leaving redirects at its default value (false), manually stripping the Proxy-Authorization header before issuing requests, or using the beforeRedirect hook to remove sensitive headers when redirecting to a different hostname.

Remediation

Upgrade @hapi/wreck to version 18.1.1 or higher.

References