URL Redirection to Untrusted Site ('Open Redirect') Affecting duende.identityserver package, versions [0,6.0.5)[6.1.0,6.1.8)[6.2.0,6.2.5)[6.3.0,6.3.10)[7.0.0,7.0.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

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 applications

Snyk Learn

Learn about URL Redirection to Untrusted Site ('Open Redirect') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-DUENDEIDENTITYSERVER-7577154
  • published1 Aug 2024
  • disclosed31 Jul 2024
  • creditUnknown

Introduced: 31 Jul 2024

CVE-2024-39694  (opens in a new tab)
CWE-601  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade Duende.IdentityServer to version 6.0.5, 6.1.8, 6.2.5, 6.3.10, 7.0.6 or higher.

Overview

Affected versions of this package are vulnerable to URL Redirection to Untrusted Site ('Open Redirect') through the commonly used GetAuthorizationContextAsync and IsValidReturnUrl methods which return non-null values and the IsValidReturnUrl method which could return true for malicious URLs. In addition, this could be exploited through the uncommonly used ServerUrlExtensions.GetIdentityServerRelativeUrl, ReturnUrlParser.ParseAsync and OidcReturnUrlParser.ParseAsync methods that could incorrectly return non-null, and the ReturnUrlParser.IsValidReturnUrl and OidcReturnUrlParser.IsValidReturnUrl methods that could incorrectly return true for malicious URLs.

Workaround

Users who are unable to upgrade to the fixed version can use IUrlHelper.IsLocalUrl from ASP.NET Core 5.0 or later to validate return Urls in user interface code in the IdentityServer host.

CVSS Scores

version 4.0
version 3.1