Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade Duende.AccessTokenManagement
to version 3.2.0 or higher.
Duende.AccessTokenManagement is a library that manages OAuth access tokens in .NET workers and ASP.NET Core worker services
Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition when handling concurrent ClientCredentialsToken
requests. The HttpContext.GetClientAccessTokenAsync()
and IClientCredentialsTokenManagementService.GetAccessTokenAsync()
functions may return access tokens with incorrect scope, resource indicator, or other protocol parameters. An attacker can exploit this to obtain the values intended for a different request sent at the same time. This is only exploitable if custom TokenRequestParameters
are allowed, overriding one of the above functions.