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:
- Send any request with
BasicCredentialHandler
,BearerCredentialHandler
orPersonalAccessTokenCredentialHandler
- The target host may return a redirection (3xx), with a link to a second host.
- 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:
- HTTP authentication leak in redirects - I used the same solution as CURL did.
- CVE-2018-1000007.
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:
- https://github.com/microsoft/typed-rest-client/security/advisories/GHSA-558p-m34m-vpmq
- https://nvd.nist.gov/vuln/detail/CVE-2023-30846
- https://github.com/microsoft/typed-rest-client/pull/207
- https://github.com/microsoft/typed-rest-client/commit/f9ff755631b982ee1303dfc3e3c823d0d31233e8
- https://security.netapp.com/advisory/ntap-20230601-0008/
- https://github.com/advisories/GHSA-558p-m34m-vpmq
Blast Radius: 37.5
Affected Packages
npm:typed-rest-client
Dependent packages: 156Dependent 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