Http request which redirect to another hostname do not strip authorization header in @actions/http-client
Moderate severity
GitHub Reviewed
Published
Apr 29, 2020
in
actions/http-client
•
Updated Feb 1, 2023
Description
Reviewed
Apr 29, 2020
Published to the GitHub Advisory Database
Apr 29, 2020
Published by the National Vulnerability Database
Apr 29, 2020
Last updated
Feb 1, 2023
Impact
If consumers of the http-client:
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
actions/http-client#27
For more information
If you have any questions or comments about this advisory:
References