Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS01NThwLW0zNG0tdnBtcc4AAy_o

Potential leak of authentication data to 3rd parties

Impact

Users of typed-rest-client library version 1.7.3 or lower are vulnerable to leak authentication data to 3rd parties.

The flow of the vulnerability is as follows:

  1. Send any request with BasicCredentialHandler, BearerCredentialHandler or PersonalAccessTokenCredentialHandler
  2. The target host may return a redirection (3xx), with a link to a second host.
  3. The next request will use the credentials to authenticate with the second host, by setting the Authorization header.

The expected behavior is that the next request will NOT set the Authorization header.

Patches

The problem was fixed on April 1st 2020.

Workarounds

There is no workaround.

References

This is similar to the following issues in nature:

  1. HTTP authentication leak in redirects - I used the same solution as CURL did.
  2. CVE-2018-1000007.
Permalink: https://github.com/advisories/GHSA-558p-m34m-vpmq
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS01NThwLW0zNG0tdnBtcc4AAy_o
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: over 1 year ago
Updated: about 1 year ago


CVSS Score: 9.1
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

EPSS Percentage: 0.00462
EPSS Percentile: 0.75129

Identifiers: GHSA-558p-m34m-vpmq, CVE-2023-30846
References: Repository: https://github.com/microsoft/typed-rest-client
Blast Radius: 37.5

Affected Packages

npm:typed-rest-client
Dependent packages: 156
Dependent repositories: 13,315
Downloads: 2,742,207 last month
Affected Version Ranges: < 1.8.0
Fixed in: 1.8.0
All affected versions: 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.14.1, 0.14.2, 0.15.1, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.9, 1.0.11, 1.1.2, 1.2.0, 1.4.0, 1.5.0, 1.7.0, 1.7.1, 1.7.2, 1.7.3
All unaffected versions: 1.8.0, 1.8.1, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.9, 1.8.10, 1.8.11, 2.0.0, 2.0.1, 2.0.2, 2.1.0