GitHub Advisoryadvisory · npm
GHSA-9w6v-m7wp-jwg4 Http request which redirect to another hostname do not strip authorization header in @actions/http-client
MEDIUM
Official page ↗
- Aliases
- CVE-2020-11021
- Ecosystem
- npm
- Packages
- @actions/http-client
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- Weaknesses
- CWE-200
- Reviewed
- 2020-04-29
Affected packages
• npm @actions/http-client: < 1.0.8 → fixed in 1.0.8
Description
Impact
If consumers of the http-client:
1. make an http request with an authorization header
2. that request leads to a redirect (302) and
3. the redirect url redirects to another domain or hostname
The authorization header will get passed to the other domain.
Note that since this library is for actions, the GITHUB_TOKEN that is available in actions is generated and scoped per job with these permissions.
Patches
The problem is fixed in 1.0.8 at npm here. In 1.0.8, the authorization header is stripped before making the redirected request if the hostname is different.
Workarounds
None.
References
https://github.com/actions/http-client/pull/27
For more information
If you have any questions or comments about this advisory:
• Open an issue in https://github.com/actions/http-client/issues
Related
Alias · CVE (1)
- CVE-2020-11021 Actions Http-Client (NPM @actions/http-client) before version 1.0.8 can disclose Authorization headers to incorrect domain in certain… vulnerability
Weakness · CWE (1)
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
References
- https://github.com/actions/http-client/security/advisories/GHSA-9w6v-m7wp-jwg4 web
- https://nvd.nist.gov/vuln/detail/CVE-2020-11021 advisory
- https://github.com/actions/http-client/pull/27 web
- https://github.com/actions/http-client/commit/f6aae3dda4f4c9dc0b49737b36007330f78fd53a web
- https://github.com/actions/http-client web