Skip to content

Releases

Duende Storage 2.0.0-preview.8

Pre-release

Choose a tag to compare

@bhazen bhazen released this 30 Nov 21:07

This is a preview release of Duende Storage 2.0, and the Storage version IdentityServer 8.1.0-preview.8 builds on. It changes the Storage schema. See the IdentityServer 8.1.0-preview.8 release notes for what changes for your application.

Before you upgrade

Migrate your database. This release adds schema version 4. Migrate every storage instance before the new version starts serving traffic:

duende storage migrate --provider <provider> --connection-string <connection-string>

You can also call IStorageInstanceSchema.MigrateAsync in code. Run it from one place, such as a deployment step, not from every app instance at startup.

On SQL Server and PostgreSQL, the migration rebuilds part of the search index, which can take a while on a large database, so plan for it. On Oracle and SQLite, it only updates the schema version. Stored data doesn't need to be rewritten.

What's new

  • duende storage verify documents its exit codes. duende storage verify --help lists them: 0 when the schema is current and valid, 2 when a migration is pending, and 1 for an error, a schema newer than the tool, or a current schema that differs.

Full Changelog: storage-2.0.0-preview.7...storage-2.0.0-preview.8

IdentityServer 8.1.0-preview.8

Pre-release

Choose a tag to compare

@bhazen bhazen released this 30 Nov 21:09

This is a preview release of IdentityServer 8.1. It builds on Duende Storage 2.0.0-preview.8.

Upgrading from an earlier preview

  • Run the Storage migration. Duende Storage 2.0.0-preview.8 adds schema version 4. Migrate every storage instance before you deploy, with the Duende CLI (duende storage migrate) or in code with IStorageInstanceSchema.MigrateAsync. On SQL Server and PostgreSQL the migration rebuilds part of the search index and can take a while on a large database.
  • Save every user profile again. Unique attribute values, such as userName, use a new storage key that follows the attribute's casing and ignores the casing of the attribute's name. Until a profile written by an earlier preview is saved again, lookups by its unique values don't find it, including password sign-in by userName, and its values aren't checked for uniqueness. Page through the users with IUserProfileAdmin.QueryAsync, and save each one with GetAsync and UpdateAsync. For a unique attribute that isn't case-sensitive, two profiles whose values differ only in case now conflict: one of the saves fails with duplicate_value, and you need to resolve it.
DataRange? range = null;
do
{
    var page = await profileAdmin.QueryAsync(
        new QueryRequest<UserProfileFilter, UserProfileSortField> { Range = range }, ct);

    foreach (var item in page.Results)
    {
        var profile = await profileAdmin.GetAsync(item.SubjectId, ct);
        if (!profile.Found)
        {
            logger.LogWarning("User {SubjectId} not found", item.SubjectId);
            continue;
        }

        var saved = await profileAdmin.UpdateAsync(
            item.SubjectId, profile.Item.ToUpdate(), profile.Version, ct);
        if (!saved.IsSuccess)
        {
            logger.LogWarning("User {SubjectId} could not be saved: {Errors}", item.SubjectId, saved.Errors);
        }
    }

    range = page.HasNextResults && page.ResultsToken is { } nextToken
        ? DataRange.FromContinuationToken(nextToken)
        : null;
}
while (range is not null);
  • Save every space again. The keys that match a request to a space are stored differently, so a space created by an earlier preview isn't found from its URL until it's saved again. Get each space with ISpaceAdmin.GetAsync, and save it with ToUpdate() and UpdateAsync. Use a loop similar to the one above, but then with ISpaceAdmin.
  • Save configuration entities with extended attributes again. Clients, API scopes, API resources, identity resources, identity providers, SAML service providers and spaces now index their extended attributes. An entity saved by an earlier preview isn't found by an attribute filter, an attribute sort or GetByAttributeAsync until it's saved again. Use a loop similar to the one above.
  • Mark inactive users again. Whether a user is active is now part of the user, not a profile attribute, and the default user schemas no longer define active. An active value that SCIM stored as a profile attribute in an earlier preview doesn't carry over: after the upgrade every user is active. active is now a reserved attribute name in the user profile schema, so rename an active attribute in your own schema. After the upgrade, you can no longer use a property called active.
  • Entity Framework configuration store. The Clients table gets a nullable MaxPrivateKeyJwtLifetime column. Generate and apply a migration before you deploy. Without it, every client read fails.

Breaking changes

Admin APIs

  • IUserProfileAdmin works like the other admin interfaces. CreateAsync, GetAsync and UpdateAsync (with an expected version) replace TryAddAsync and TryGetAsync, take an AttributeValueCollection, and return a SaveResult or GetResult. A failed save returns validation_failed, already_exists, not_found, version_conflict or duplicate_value; the codes are constants on StorageErrorCodes. GetByAttributeAsync(code, value) replaces TryGetAsync(code, value). QueryAsync takes a QueryRequest<UserProfileFilter, UserProfileSortField>; userName is an ordinary schema attribute, sorted with SortBy.Attribute.
  • IGroupAdmin and IRoleAdmin use separate read and write models: GroupConfiguration, CreateGroup and UpdateGroup, and RoleConfiguration, CreateRole and UpdateRole, with plain string properties. Group and Role are removed. UpdateAsync replaces the whole entity, so a null description clears it. Invalid values return a validation_failed error instead of throwing. GroupFilter.SearchExpression is removed: put a group filter expression in QueryRequest.Filter, as with every other admin.
  • ISpaceAdmin uses SpaceConfiguration, CreateSpace and UpdateSpace. CreateSpaceConfiguration is removed, and UpdateAsync takes the space id, an UpdateSpace and the expected version.
  • IApiResourceAdmin.CreateSecretAsync takes a CreateApiResourceSecret, like IClientAdmin.CreateSecretAsync takes a CreateClientSecret.
  • QueryRequest<TFilter, TSort>.Sort is a SortBy<TSort>?. A sort enum value converts to it implicitly.
  • QueryResult<T>.HasPrevResults is renamed to HasPreviousResults. Update code that reads or sets it, including Pages/ServerSideSessions/Index.cshtml in projects created from the Quickstart UI templates. If you serialize QueryResult<T>, the JSON property name changes too.
  • Created and last-updated times. The list items and read models of every admin API have required Created and LastUpdated properties. Code that constructs them must set both.
  • Reserved attribute names. An extended attribute can't use the name of one of the entity's built-in fields (for example enabled on a client), created_at or last_updated_at, and a user profile attribute can't be called active. The name is rejected when an entity is saved, when a schema is saved through ISchemaAdmin, and at startup for in-memory schemas.
  • Sort order. In a descending sort, entities without a value for the sort field now come first instead of last. Text sorts by ordinal (binary) order on every database, so accented letters and punctuation can sort differently than under your database's collation.
  • not inside a bracket filter is a true negation. contacts[not (type eq "work")] now also matches entries that have no type.

User Management

  • Attribute names use the schema's spelling. Profile reads, and the extended properties of the other admin APIs, return attribute and property names as the schema spells them, whatever spelling they were stored under. IUserProfileAdmin saves return validation_failed, IUserProfileSelfService throws ArgumentException, and IUserImporter fails the record when a name differs from the schema's spelling. The runtime Properties of a Client, ApiResource, ApiScope, IdentityResource or IdentityProvider saved through an admin API hold the schema's spelling, and their keys compare with case.
  • UserManagementProfileService.IsUserActiveAsync is removed. The default IsActiveAsync answers from the user's active state. To use a different rule, override IsActiveAsync.

Spaces

  • AddSpaces() registers ISpaceAdmin and ISpaceContextAccessor with Add instead of TryAdd. A registration made before AddSpaces() no longer replaces the Spaces implementation. Register your own after AddSpaces().

SCIM

SCIM follows RFC 7643 and RFC 7644 more closely, and some requests that succeeded before now get a 400:

  • An attribute name with surrounding whitespace, such as " password", is rejected instead of trimmed: invalidPath in a PATCH, invalidValue in a create or replace. Before, a padded password could be stored as a plaintext profile attribute.
  • sortBy with an attribute the server can't sort on, and a sortOrder other than ascending or descending, return 400 invalidValue on user and group list and search. Before, they were ignored.
  • externalId on a user, when the profile schema doesn't define it, returns 400 instead of being dropped. DefaultScimUserSchema defines externalId.
  • PATCH add on a multi-valued attribute adds to its values instead of replacing them; use replace to replace the whole list. An add of null or [] changes nothing.
  • PATCH add or replace on a complex attribute, such as name, changes only the sub-attributes in the value and keeps the others. A null sub-attribute clears only that sub-attribute.
  • PATCH on id, schemas, meta or the user's groups returns 400 mutability, and so does a remove of a required attribute, including userName. Before, some of these returned 200, 500, or a different error.
  • User create and replace ignore groups, as a read-only attribute. If your profile schema defines its own groups attribute, SCIM no longer writes it.
  • A group PATCH without a path whose value contains an attribute other than displayName, externalId, members or the group's own id returns 400 instead of ignoring it.
  • A null entry in attributes or excludedAttributes returns 400 invalidValue, with or without a cursor.
  • Users without a value for the sort attribute come first in a descending sort.
  • /Schemas names attributes by their profile code, no longer lists externalId (a common attribute, like id and meta), and lists active.
  • DateTime sub-values are returned in round-trip format, like top-level DateTime attributes.
  • The index-mode count on user lists is limited by ScimOptions.MaxResults as well as 200, as on group lists.

What's changed

Admin APIs

  • Query every admin API the same way. Every admin accepts a typed filter or a filter expression, and a sort by built-in field or by extended attribute. Before, the configuration admins ignored a filter expression and returned every enti...
Read more

Duende CLI 0.0.6

Choose a tag to compare

@pgermishuys pgermishuys released this 17 Nov 14:16

This release of the Duende CLI makes the Duende Storage plugin work reliably next to dotnet restore and on machines without network access. Use it with Duende Storage 2.0.0-preview.7 to run duende storage migrate and duende storage verify.

What's changed

  • Plugins install in the standard NuGet layout. The CLI installs a plugin, such as Duende.Storage.CliPlugin, into the NuGet packages folder the same way dotnet restore does. Before, the two layouts clashed: after a restore of the plugin package, the CLI failed with "Could not find plugin assembly", and the storage commands were not available.
  • A restored plugin works offline. If the plugin package is already in the NuGet packages folder, for example on a build agent that restored it in advance, the CLI uses it without going to nuget.org.
  • Plugins installed by an earlier CLI version are installed again in the new layout the first time you use them. You don't need to do anything.
  • The CLI now ships System.Security.Cryptography.Pkcs 10.0.14.

Full Changelog: cli-0.0.5...cli-0.0.6

Duende Storage 2.0.0-preview.7

Pre-release

Choose a tag to compare

This is a preview release of Duende Storage 2.0, and the Storage version IdentityServer 8.1.0-preview.7 builds on. It adds a schema migration and better tools to check your database.

Before you upgrade

Migrate your database. This release changes the Storage schema. Migrate every storage instance before the new version starts serving traffic:

duende storage migrate --provider <provider> --connection-string <connection-string>

You can also call IStorageInstanceSchema.MigrateAsync in code. Run it from one place, such as a deployment step, not from every app instance at startup.

Earlier previews didn't enforce the relationships between stored records, so a database can contain links to records that were deleted. The migration removes those links. Nothing else is deleted.

What's new

  • Check a database before you deploy. duende storage verify checks that a database's schema is complete and correct, without changing anything. Use it in a deployment pipeline or a health check.
  • Migrations check their result. A migration, or MigrateAsync on a schema that is already current, now also checks the schema, and fails if something is missing or different. An app that migrates at startup won't start on a schema that has drifted.
  • A clear error when you forget to migrate. If the Storage tables don't exist, the error tells you to run duende storage migrate, instead of a raw database error about a missing table.

Breaking changes

  • Extensible attributes are removed. The Duende.Storage.EntityAttributeValue namespace is no longer part of Duende Storage.

Full Changelog: storage-2.0.0-preview.6...storage-2.0.0-preview.7

Duende IdentityServer 8.1.0-preview.7

Pre-release

Choose a tag to compare

@pgermishuys pgermishuys released this 17 Nov 11:19

This is a preview release of IdentityServer 8.1. It builds on Duende Storage 2.0.0-preview.7.

User Management and Spaces are now part of IdentityServer and ship in the Duende.IdentityServer package. There are no new Duende.UserManagement or Duende.Spaces packages.

The NuGet Packages for User Management and Spaces will be deprecated and should no longer be used.

Upgrading from an earlier preview

  • Run the Storage migration. Duende Storage 2.0.0-preview.7 adds schema version 3, which adds foreign keys to the links between stored entities. Migrate every storage instance before you deploy, with the Duende CLI (duende storage migrate) or in code with IStorageInstanceSchema.MigrateAsync. The migration first deletes links whose entity no longer exists. See the Duende Storage 2.0.0-preview.7 release notes.
  • Re-create stored API resources, clients and SAML service providers. If you store API resources, clients or SAML service providers in Duende Storage, their scopes are now stored as links to the API scopes and identity resources, not as names. Those saved by an earlier preview read back with no scopes. Save them again with their scopes, or re-create them.
  • Remove the User Management and Spaces packages. Remove your references to Duende.UserManagement, Duende.UserManagement.IdentityServer8 and Duende.Spaces. The types are in Duende.IdentityServer now, with the same namespaces and names. Call AddUserManagement() and AddSpaces() on the IdentityServer builder.
  • Entity Framework server-side sessions. The ServerSideSessions table gets a Version column. Generate and apply a migration before you deploy. Without it, every session read and delete fails.

Security fixes

This preview includes the fixes for the advisories published with IdentityServer 8.0.11:

  • GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
  • GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
  • GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
  • GHSA-wcc6-7mjx-g6j5: Incorrectly formatted SAML messages can cause a denial of service.
  • GHSA-hmrv-xfgm-wgh2: The SAML service provider doesn't validate bearer SubjectConfirmationData.
  • GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
  • GHSA-6xhh-5qhq-m9vf: The SAML service provider ends a session when it receives a logout request from a different identity provider.
  • GHSA-hhqg-4hp5-4v5h: The SAML service provider accepts a changed RelayState in signed HTTP-Redirect messages.

The upgrade notes in the IdentityServer 8.0.11 release notes apply to this preview too: mTLS, introspection, end session, server-side sessions, DPoP, SAML XML limits, SAML logout with an external login callback, and SAML logout with SameSite.

Breaking changes

  • Server-side session store. IServerSideSessionStore.UpdateSessionAsync now returns Task<bool>, and saves a session only while the version it was read at is still the stored version. Custom stores and decorators must return the result and do this check. Code that calls it should check the result: false means the save didn't happen.
  • Fixed IssuerUri with Spaces. A host that registers Spaces and sets IdentityServerOptions.IssuerUri fails at startup, because every space would get the same issuer. Set SpacesOptions.AllowSharedIssuerUri to use one issuer on purpose.
  • Lowercase space paths and match patterns. A space path resolves only when the prefix and the space segment are lowercase; other spellings get a 404. SpacesOptions.SpacePathPrefix must be lowercase. ISpaceAdmin accepts only lowercase ASCII match patterns.
  • Dynamic provider options with Spaces. With Spaces, the host fails at startup when the options cache for a dynamic provider type isn't space-aware, for example when you registered your own IOptionsMonitorCache<T> for it.
  • Scopes in the Admin API. Client and SAML service provider AllowedScopes, and API resource scopes, must name existing scopes, and match them exactly, including case. A client can't list offline_access; use AllowOfflineAccess. API scope and identity resource names must be unique across both kinds. An API scope or identity resource that is still in use can't be deleted.
  • Client validation in the Admin API. Client URIs are validated on create and update, and adding or removing a client secret validates the whole client. The storage client store validates the clients it returns, like the other client stores.

What's changed

Spaces

  • In-memory operational stores keep each space's data separate.
  • Deleting a space purges its data in every storage instance, and pool IDs of purged spaces aren't reused automatically.
  • SCIM authenticates tokens per space by default. New options ReadAuthorizationPolicyName and WriteAuthorizationPolicyName let you set separate read and write policies.
  • With signing keys shared by every space, UseIdentityServer() logs a warning.
  • Idle cached dynamic provider state is released per space, and extended properties survive the Spaces cache.

Storage

  • Signing-key creation and background jobs (outbox processing, storage purge and server-side session cleanup) are coordinated across nodes when you use Duende Storage.
  • Renaming an API scope or identity resource is reflected everywhere it's used.

User Management

  • SCIM is no longer experimental. You no longer need to suppress the duende_experimental diagnostic.
  • OTP email recipient addresses are masked in logs.

Fixes

  • Concurrent updates to a server-side session no longer silently overwrite each other.
  • Replacing a server-side session only revokes grants of clients whose lifetime is coordinated with the user session.
  • Redirect scripts accept only HTTP and HTTPS destinations.
  • Paging back before the first page of server-side sessions works.
  • Stopping an IdentityServer host synchronously from a thread with a single-threaded synchronization context no longer hangs.

Full Changelog: is-8.1.0-preview.6...is-8.1.0-preview.7

Duende IdentityServer 8.0.11

Choose a tag to compare

@Erwinvandervalk Erwinvandervalk released this 16 Nov 18:08

We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.

The fixes that aren't SAML-specific are also released in 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.

Security fixes

  • GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
  • GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
  • GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
  • GHSA-wcc6-7mjx-g6j5: Incorrectly formatted SAML messages can cause a denial of service.
  • GHSA-hmrv-xfgm-wgh2: The SAML service provider doesn't validate bearer SubjectConfirmationData.
  • GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.
  • GHSA-6xhh-5qhq-m9vf: The SAML service provider ends a session when it receives a logout request from a different identity provider.
  • GHSA-hhqg-4hp5-4v5h: The SAML service provider accepts a changed RelayState in signed HTTP-Redirect messages.

Upgrade notes

  • mTLS: if you call AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme, Certificate by default) is registered, usually with AddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only if AllowedCertificateTypes includes CertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate.

  • Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.

  • End session: an id_token_hint that isn't an ID token, or that has no sub claim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a custom typ header, add it to IdentityServerOptions.IdentityTokenJwtTypes.

  • Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced IServerSideTicketStore with your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make.

  • DPoP: if you override DefaultDPoPProofValidator.ValidateSignatureAsync, replaced the Handler of JwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.

  • SAML XML limits: SAML messages whose XML elements are nested deeper than MaxXmlNestingDepth (32 by default) are rejected. You can change the limit for the identity provider (SamlOptions.MaxXmlNestingDepth), for service providers configured in code (SamlServiceProviderOptions.MaxXmlNestingDepth) and for SAML dynamic providers. The service provider now also rejects messages that contain a DTD and drops XML processing instructions, as the identity provider already did.

  • SAML logout with an external login callback: if you use SAML dynamic providers (AddSamlDynamicProvider()), or AddSamlServiceProvider() with the external cookie as its sign-in scheme, your external login callback creates the IdentityServer session. Copy the SAML sign-in claims into that session, or IdP-initiated logout stays exposed after the upgrade. In our templates, add this to CaptureExternalLoginContext in Pages/ExternalLogin/Callback.cshtml.cs, right after the block that copies the sid claim:

    localClaims.AddRange(externalResult.Principal.Claims.Where(claim => claim.Type
        is "https://duendesoftware.com/Saml2/Scheme"
        or "https://duendesoftware.com/Saml2/LogoutNameIdentifier"
        or "https://duendesoftware.com/Saml2/SessionIndex"));
  • SAML logout and SameSite: if your session cookie uses SameSite=Lax or SameSite=Strict and an identity provider sends its LogoutRequest with the HTTP-POST binding, the logout no longer ends the IdentityServer session. The default, SameSite=None, isn't affected.

Other changes

  • Stopping an IdentityServer host synchronously from a thread with a single-threaded synchronization context, for example in xUnit v2 tests with WebApplicationFactory, no longer hangs.

Full Changelog: is-8.0.10...is-8.0.11

Duende IdentityServer 7.4.15

Choose a tag to compare

@Erwinvandervalk Erwinvandervalk released this 16 Nov 18:08

We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.

The same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.

Security fixes

  • GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
  • GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
  • GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
  • GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.

Upgrade notes

  • mTLS: if you call AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme, Certificate by default) is registered, usually with AddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only if AllowedCertificateTypes includes CertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate.
  • Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
  • End session: an id_token_hint that isn't an ID token, or that has no sub claim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a custom typ header, add it to IdentityServerOptions.IdentityTokenJwtTypes.
  • Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced IServerSideTicketStore with your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make.
  • DPoP: if you override DefaultDPoPProofValidator.ValidateSignatureAsync, replaced the Handler of JwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.

Other changes

  • Stopping an IdentityServer host synchronously from a thread with a single-threaded synchronization context, for example in xUnit v2 tests with WebApplicationFactory, no longer hangs.

Full Changelog: is-7.4.14...is-7.4.15

Duende IdentityServer 7.3.6

Choose a tag to compare

@Erwinvandervalk Erwinvandervalk released this 16 Nov 18:08

We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.

The same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.

Security fixes

  • GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
  • GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
  • GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
  • GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.

Upgrade notes

  • mTLS: if you call AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme, Certificate by default) is registered, usually with AddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only if AllowedCertificateTypes includes CertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate.
  • Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
  • End session: an id_token_hint that isn't an ID token, or that has no sub claim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a custom typ header, add it to IdentityServerOptions.IdentityTokenJwtTypes.
  • Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced IServerSideTicketStore with your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make.
  • DPoP: if you override DefaultDPoPProofValidator.ValidateSignatureAsync, replaced the Handler of JwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.

Full Changelog: is-7.3.5...is-7.3.6

Duende IdentityServer 7.2.6

Choose a tag to compare

@Erwinvandervalk Erwinvandervalk released this 16 Nov 18:08

We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.

The same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.

Security fixes

  • GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
  • GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
  • GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
  • GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.

Upgrade notes

  • mTLS: if you call AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme, Certificate by default) is registered, usually with AddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only if AllowedCertificateTypes includes CertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate.
  • Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
  • End session: an id_token_hint that isn't an ID token, or that has no sub claim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a custom typ header, add it to IdentityServerOptions.IdentityTokenJwtTypes.
  • Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced IServerSideTicketStore with your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make.
  • DPoP: if you override DefaultDPoPProofValidator.ValidateSignatureAsync, replaced the Handler of JwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.

Full Changelog: is-7.2.5...is-7.2.6

Duende IdentityServer 7.1.4

Choose a tag to compare

@Erwinvandervalk Erwinvandervalk released this 16 Nov 18:08

We've published several security advisories for Duende products including IdentityServer and BFF, along with updated packages that fix them. We strongly recommend updating to the latest patched releases.

The same fixes are released in 8.0.11, 7.4.15, 7.3.6, 7.2.6, 7.1.4 and 7.0.11.

Security fixes

  • GHSA-mv65-jhg4-3qh6: mTLS client authentication can be bypassed with a self-signed certificate that matches the expected subject name.
  • GHSA-4xw7-58r7-8h6h: Signing in with server-side sessions reuses an existing session key, which allows session fixation.
  • GHSA-qqfr-626g-64rp: A DPoP proof key confusion allows leaked DPoP refresh and access tokens to be used.
  • GHSA-478v-p4g7-f7g4: id_token_hint isn't validated thoroughly enough.

Upgrade notes

  • mTLS: if you call AddMutualTlsSecretValidators(), make sure the certificate authentication scheme (MutualTls.ClientCertificateAuthenticationScheme, Certificate by default) is registered, usually with AddCertificate(). Clients with a thumbprint (X509Thumbprint) secret that present a self-signed certificate keep working only if AllowedCertificateTypes includes CertificateTypes.SelfSigned. Clients that use a self-signed certificate with a subject name (X509Name) secret must switch to a thumbprint secret or a CA-issued certificate.
  • Introspection: public clients and implicit-only clients can no longer call the introspection endpoint; it returns 401 for them. Give applications that relied on this a confidential client.
  • End session: an id_token_hint that isn't an ID token, or that has no sub claim, is ignored, and the user sees the sign-out prompt. If your ID tokens have a custom typ header, add it to IdentityServerOptions.IdentityTokenJwtTypes.
  • Server-side sessions: a user who signs in on a browser that still carries another user's session is signed out, and has to sign in a second time. If you replaced IServerSideTicketStore with your own implementation, upgrading doesn't fix the vulnerability for you; see the advisory for the change to make.
  • DPoP: if you override DefaultDPoPProofValidator.ValidateSignatureAsync, replaced the Handler of JwtRequestValidator, or registered your own secret validator for client assertions, see the advisory for what your code must check.

Full Changelog: is-7.1.3...is-7.1.4

⌂ 换网址