Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1mZjRxLTY0amMtZ3g5OM4AA-Sq

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.

Note: by itself, this vulnerability does not allow an attacker to obtain user credentials, authorization codes, access tokens, refresh tokens, or identity tokens. An attacker could however exploit this vulnerability as part of a phishing attack designed to steal user credentials.

Affected Methods

Patches

This vulnerability is fixed in the following versions of Duende.IdentityServer:

Duende.IdentityServer 5.1 and earlier and all versions of IdentityServer4 are no longer supported and will not be receiving updates.

Workarounds

If upgrading is not possible, use IUrlHelper.IsLocalUrl from ASP.NET Core 5.0 or later to validate return Urls in user interface code in the IdentityServer host.

Permalink: https://github.com/advisories/GHSA-ff4q-64jc-gx98
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mZjRxLTY0amMtZ3g5OM4AA-Sq
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 2 months ago
Updated: about 2 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-ff4q-64jc-gx98, CVE-2024-39694
References: Repository: https://github.com/DuendeSoftware/IdentityServer
Blast Radius: 1.0

Affected Packages

nuget:IdentityServer4
Dependent packages: 176
Dependent repositories: 0
Downloads: 53,834,766 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
nuget:Duende.IdentityServer
Dependent packages: 43
Dependent repositories: 0
Downloads: 9,803,147 total
Affected Version Ranges: >= 6.0.0-preview.1, <= 6.0.4, >= 6.1.0-preview.1, <= 6.1.7, >= 6.2.0-preview.1, <= 6.2.4, >= 6.3.0-preview.1, <= 6.3.9, >= 7.0.0-preview.1, <= 7.0.5
Fixed in: 6.0.5, 6.1.8, 6.2.5, 6.3.10, 7.0.6
All affected versions: 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.1.5, 6.1.6, 6.1.7, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.3.0, 6.3.1, 6.3.2, 6.3.3, 6.3.4, 6.3.5, 6.3.6, 6.3.7, 6.3.8, 6.3.9, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5
All unaffected versions: 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.0.5, 5.1.0, 5.1.1, 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.2.4, 6.0.5, 6.1.8, 6.2.5, 6.3.10, 7.0.6