Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS01NXA3LXYyMjMteDM2Ns4AA-TC
IdentityServer Open Redirect vulnerability
Impact
It is possible for an attacker to craft malicious Urls that certain functions in IdentityServer will incorrectly treat as local and trusted. If such a Url is returned as a redirect, some browsers will follow it to a third-party, untrusted site.
Affected Methods
-
In the
DefaultIdentityServerInteractionService
, theGetAuthorizationContextAsync
method may return non-null and theIsValidReturnUrl
method may return true for malicious Urls, indicating incorrectly that they can be safely redirected to.UI code calling these two methods is the most commonly used code path that will expose the vulnerability. The default UI templates rely on this behavior in the Login, Challenge, and Consent pages. Customized user interface code might also rely on this behavior. The following uncommonly used APIs are also vulnerable:
-
The
ServerUrlExtensions.GetIdentityServerRelativeUrl
,ReturnUrlParser.ParseAsync
andOidcReturnUrlParser.ParseAsync
methods may incorrectly return non-null, and theReturnUrlParser.IsValidReturnUrl
andOidcReturnUrlParser.IsValidReturnUrl
methods may incorrectly return true for malicious Urls.
Patches
IdentityServer4 is no longer supported and will not be receiving updates. Please consider updating to Duende.IdentityServer.
Permalink: https://github.com/advisories/GHSA-55p7-v223-x366JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS01NXA3LXYyMjMteDM2Ns4AA-TC
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 3 months ago
Updated: 3 months ago
CVSS Score: 4.7
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
Identifiers: GHSA-55p7-v223-x366
References:
- https://github.com/DuendeSoftware/IdentityServer/security/advisories/GHSA-ff4q-64jc-gx98
- https://github.com/IdentityServer/IdentityServer4/security/advisories/GHSA-55p7-v223-x366
- https://nvd.nist.gov/vuln/detail/CVE-2024-39694
- https://github.com/advisories/GHSA-55p7-v223-x366
Blast Radius: 1.0
Affected Packages
nuget:IdentityServer4
Dependent packages: 176Dependent repositories: 0
Downloads: 55,121,379 total
Affected Version Ranges: <= 4.1.2
No known fixed version
All affected versions: 1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0, 2.3.0, 2.3.1, 2.3.2, 2.4.0, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.1.0, 4.1.1, 4.1.2