ghsa-7mr7-4f54-vcx5
Vulnerability from github
Published
2024-11-07 21:57
Modified
2024-11-08 13:55
Severity ?
5.4 (Medium) - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
5.3 (Medium) - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
5.3 (Medium) - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Summary
HTTP Client uses incorrect token after refresh
Details
Impact
HTTP Clients created by AddUserAccessTokenHttpClient
may use a different user's access token after a token refresh. This occurs because a refreshed token will be captured in pooled HttpClient
instances, which may be used by a different user.
Workarounds
Instead of using AddUserAccessTokenHttpClient
to create an HttpClient
that automatically adds a managed token to outgoing requests, you can use the HttpConext.GetUserAccessTokenAsync
extension method or the IUserTokenManagementService.GetAccessTokenAsync
method.
Patches
This issue is fixed in Duende.AccessTokenManagement.OpenIdConnect 3.0.1.
{ "affected": [ { "package": { "ecosystem": "NuGet", "name": "Duende.AccessTokenManagement.OpenIdConnect" }, "ranges": [ { "events": [ { "introduced": "3.0.0" }, { "fixed": "3.0.1" } ], "type": "ECOSYSTEM" } ], "versions": [ "3.0.0" ] } ], "aliases": [ "CVE-2024-51987" ], "database_specific": { "cwe_ids": [ "CWE-270" ], "github_reviewed": true, "github_reviewed_at": "2024-11-07T21:57:52Z", "nvd_published_at": "2024-11-08T00:15:15Z", "severity": "MODERATE" }, "details": "### Impact\nHTTP Clients created by `AddUserAccessTokenHttpClient` may use a different user\u0027s access token after a token refresh. This occurs because a refreshed token will be captured in pooled `HttpClient` instances, which may be used by a different user.\n\n### Workarounds\nInstead of using `AddUserAccessTokenHttpClient` to create an `HttpClient` that automatically adds a managed token to outgoing requests, you can use the `HttpConext.GetUserAccessTokenAsync` extension method or the `IUserTokenManagementService.GetAccessTokenAsync` method.\n\n### Patches\nThis issue is fixed in Duende.AccessTokenManagement.OpenIdConnect 3.0.1.\n\n", "id": "GHSA-7mr7-4f54-vcx5", "modified": "2024-11-08T13:55:27Z", "published": "2024-11-07T21:57:52Z", "references": [ { "type": "WEB", "url": "https://github.com/DuendeSoftware/Duende.AccessTokenManagement/security/advisories/GHSA-7mr7-4f54-vcx5" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-51987" }, { "type": "WEB", "url": "https://github.com/DuendeSoftware/Duende.AccessTokenManagement/commit/09c73e32b182da5c6d7b55ec790cb2271cc4b63f" }, { "type": "PACKAGE", "url": "https://github.com/DuendeSoftware/Duende.AccessTokenManagement" }, { "type": "WEB", "url": "https://github.com/DuendeSoftware/Duende.AccessTokenManagement/releases/tag/3.0.1" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N", "type": "CVSS_V3" }, { "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N", "type": "CVSS_V4" } ], "summary": "HTTP Client uses incorrect token after refresh" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.