Update dependency Duende.IdentityServer to 7.0.4 [SECURITY] #176
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.1.1
->7.0.4
GitHub Vulnerability Alerts
CVE-2024-39694
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
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, Consent, and Account Creation 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
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.Release Notes
DuendeSoftware/IdentityServer (Duende.IdentityServer)
v7.0.4
Compare Source
This is a patch release that updates our dependency on ASP.NET framework packages from version 8.0.0 to version 8.0.3. This updates our transitive dependency on the System.IdentityModel.Tokens.Jwt and Microsoft.IdentityModel.JsonWebTokens packages past versions that have a known Denial of Service vulnerability.
What's Changed
Full Changelog: DuendeSoftware/IdentityServer@7.0.3...7.0.4
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.