Azure.Core is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor
59
Medium Risk
Azure.Core includes BearerTokenAuthenticationPolicy, which attaches a cached bearer token as the Authorization header on every per-retry send. When the pipeline follows a redirect to a different host, the policy re-attaches the original access token even though RedirectPolicy had stripped it, sending the credential to the redirect target. An attacker-controlled or otherwise unintended redirect host can therefore receive an access token issued for the original service. The fix detects when the request authority changes, defensively strips any Authorization header, and skips re-authorization and challenge handling for the redirected host.
You are affected if you are using a version that falls within the vulnerable range and your client follows an HTTP redirect to a different host.
Azure.Core is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor in versions 1.17.0 - 1.58.0.
Upgrade the Azure.Core library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant