Skip to content

Close remaining security gaps and fix compatibility issues from #26514 - #26579

Open
maliming wants to merge 10 commits into
rel-11.0from
maliming/security-hardening-rel-11.0
Open

maliming wants to merge 10 commits into
rel-11.0from
maliming/security-hardening-rel-11.0

Conversation

@maliming

@maliming maliming commented Dec 1, 2026

Copy link
Copy Markdown
Member

Related to #26514

Applies class-level authorization and features to inherited methods, respects inherited [DisableAuditing] in audit logs, restricts CLI token files, package resource mappings and generated proxy code, closes remaining CMS Kit gaps, and fixes sorting, Docs language caching and OpenIddict logout callback issues introduced by #26514.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 04:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved critical security issues allow package mappings to write outside the project or trigger code execution, while incomplete visibility filtering exposes draft or deleted blog tags publicly.

5 open issues
What changed in this PR

This PR follows up on #26514 with security hardening across ABP’s framework, CLI and CMS Kit, plus compatibility fixes for sorting, Docs caching and OpenIddict logout callbacks.

Changes:

  • Applies inherited authorization, feature and auditing attributes consistently.
  • Tightens CLI file handling, generated proxy validation and CMS Kit public behavior.
  • Adds regression coverage and migration guidance for affected applications.
File Description
npm/​ng-packs/​packages/​cms-kit/​admin/​src/​defaults/​comments/​default-comment-entity-props.ts Validates and escapes comment links.
modules/​openiddict/​test/​Volo.Abp.OpenIddict.AspNetCore.Tests/​Volo/​Abp/​OpenIddict/​Integration/​WildcardRedirect_Integration_Tests.cs Tests alternate logout callback spellings.
modules/​openiddict/​src/​Volo.Abp.OpenIddict.AspNetCore/​Volo/​Abp/​OpenIddict/​WildcardDomains/​AbpOpenIddictWildcardDomainValidator.cs Handles default ports and root callback spellings.
modules/​openiddict/​src/​Volo.Abp.OpenIddict.AspNetCore/​Volo/​Abp/​OpenIddict/​WildcardDomains/​AbpOpenIddictWildcardDomainOptions.cs Clarifies wildcard callback documentation.
modules/​docs/​test/​Volo.Docs.Web.Tests/​ReplacedDocumentSource_Http_Tests.cs Tests version-specific languages in replacement sources.
modules/​docs/​test/​Volo.Docs.Web.Tests/​ProjectLanguages_Http_Tests.cs Tests shared file-system language caching.
modules/​docs/​test/​Volo.Docs.Admin.Application.Tests/​Volo/​Docs/​ClearCacheFailure_Tests.cs Tests cache clearing when generation invalidation fails.
modules/​docs/​src/​Volo.Docs.Web/​Pages/​Documents/​Project/​Index.cshtml.cs Adds a comment explaining version-name validation.
modules/​docs/​src/​Volo.Docs.Common.Application/​Volo/​Docs/​Common/​Projects/​ProjectAppService.cs Shares language cache entries for the built-in file-system source.
modules/​docs/​src/​Volo.Docs.Admin.Application/​Volo/​Docs/​Admin/​Documents/​DocumentAdminAppService.cs Defers language-generation invalidation until after commit.
modules/​cms-kit/​test/​Volo.CmsKit.TestBase/​Tags/​TagRepository_Test.cs Tests popular-tag filtering for hidden posts.
modules/​cms-kit/​test/​Volo.CmsKit.Public.Web.Tests/​PublicLookupCache_Http_Tests.cs Tests routing with stale slug aliases.
modules/​cms-kit/​test/​Volo.CmsKit.Application.Tests/​SortingPrivacy_Tests.cs Covers supported comment and public-post sorting.
modules/​cms-kit/​test/​Volo.CmsKit.Application.Tests/​Pages/​StoredValueCacheKey_Tests.cs Tests stored-value cache keys and stale entries.
modules/​cms-kit/​test/​Volo.CmsKit.Application.Tests/​Menus/​MenuItemPublicAppService_Tests.cs Tests menu URL scheme filtering.
modules/​cms-kit/​test/​Volo.CmsKit.Application.Tests/​Menus/​CacheInvalidationTiming_Tests.cs Tests post-commit cache invalidation.
modules/​cms-kit/​test/​Volo.CmsKit.Application.Tests/​Blogs/​BlogInteractionFeature_Tests.cs Tests comment editing when comments are disabled.
modules/​cms-kit/​src/​Volo.CmsKit.Public.Web/​Pages/​CmsKitPageRouteValueTransformer.cs Checks cached slug spelling before claiming routes.
modules/​cms-kit/​src/​Volo.CmsKit.Public.Application/​Volo/​CmsKit/​Public/​Pages/​PagePublicAppService.cs Avoids caching or returning stale slug aliases.
modules/​cms-kit/​src/​Volo.CmsKit.Public.Application/​Volo/​CmsKit/​Public/​Menus/​MenuItemPublicAppService.cs Filters unsafe menu URL schemes.
modules/​cms-kit/​src/​Volo.CmsKit.Public.Application/​Volo/​CmsKit/​Public/​Comments/​CommentPublicAppService.cs Checks blog features before editing comments.
modules/​cms-kit/​src/​Volo.CmsKit.Public.Application/​Volo/​CmsKit/​Public/​Blogs/​BlogPostPublicAppService.cs Expands sorting to additional returned fields.
modules/​cms-kit/​src/​Volo.CmsKit.MongoDB/​Volo/​CmsKit/​MongoDB/​Tags/​MongoTagRepository.cs Filters hidden posts from popular-tag counts.
modules/​cms-kit/​src/​Volo.CmsKit.EntityFrameworkCore/​Volo/​CmsKit/​Tags/​EfCoreTagRepository.cs Filters hidden posts from popular-tag counts.
modules/​cms-kit/​src/​Volo.CmsKit.EntityFrameworkCore/​Volo/​CmsKit/​Comments/​EfCoreCommentRepository.cs Handles joined multi-column comment sorting.
modules/​cms-kit/​src/​Volo.CmsKit.Common.Application/​Volo/​CmsKit/​Menus/​MenuChangedHandler.cs Defers menu cache removal until commit.
modules/​cms-kit/​src/​Volo.CmsKit.Common.Application/​Volo/​CmsKit/​Blogs/​BlogFeatureChangedHandler.cs Defers blog-feature cache removal until commit.
modules/​cms-kit/​src/​Volo.CmsKit.Common.Application/​Volo/​CmsKit/​Blogs/​BlogFeatureAppService.cs Rejects stale default and alternate-name cache entries.
modules/​cms-kit/​src/​Volo.CmsKit.Admin.Application/​Volo/​CmsKit/​Admin/​Comments/​CommentAdminAppService.cs Normalizes comment prefixes before sorting validation.
modules/​blogging/​src/​Volo.Blogging.Web/​Pages/​Blogs/​BloggingPageHelper.cs Adds a comment clarifying excerpt sanitization.
framework/​test/​Volo.Abp.Features.Tests/​Volo/​Abp/​Features/​ExplicitInterfaceFeature_Tests.cs Tests derived-class features on inherited methods.
framework/​test/​Volo.Abp.Cli.Core.Tests/​Volo/​Abp/​Cli/​ServiceProxying/​CSharp/​CSharpServiceProxyGenerator_Tests.cs Tests proxy validation and output compatibility.
framework/​test/​Volo.Abp.Cli.Core.Tests/​Volo/​Abp/​Cli/​LIbs/​InstallLibsResourceMapping_Tests.cs Tests package resource-mapping restrictions.
framework/​test/​Volo.Abp.Cli.Core.Tests/​Volo/​Abp/​Cli/​Auth/​AuthService_Tests.cs Tests Unix token-file permissions.
framework/​test/​Volo.Abp.Authorization.Tests/​Volo/​Abp/​Authorization/​ExplicitInterfaceAuthorization_Tests.cs Tests derived-class policies on inherited methods.
framework/​test/​Volo.Abp.Auditing.Tests/​Volo/​Abp/​Auditing/​JsonAuditSerializer_Test.cs Tests inherited auditing exclusions during serialization.
framework/​test/​Volo.Abp.Auditing.Tests/​Volo/​Abp/​Auditing/​Auditing_Tests.cs Tests auditing attributes on overridden entity properties.
framework/​test/​Volo.Abp.Auditing.Tests/​Volo/​Abp/​Auditing/​App/​EntityFrameworkCore/​AbpAuditingTestDbContext.cs Registers new auditing test entities.
framework/​test/​Volo.Abp.Auditing.Tests/​Volo/​Abp/​Auditing/​App/​Entities/​AppEntityWithOverriddenDisableAuditingProperty.cs Adds an inherited auditing-exclusion fixture.
framework/​test/​Volo.Abp.Auditing.Tests/​Volo/​Abp/​Auditing/​App/​Entities/​AppEntityWithOverriddenAuditedProperty.cs Adds an inherited audited-property fixture.
framework/​test/​Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.Tests/​AbpTenantAppService_Tests.cs Tests tenant-name length limits and valid lookup.
framework/​src/​Volo.Abp.Http.Client.IdentityModel.Web/​Volo/​Abp/​Http/​Client/​IdentityModel/​Web/​HttpContextIdentityModelRemoteServiceHttpClientAuthenticator.cs Adds a comment explaining credential fallback restrictions.
framework/​src/​Volo.Abp.Features/​Volo/​Abp/​Features/​MethodInvocationFeatureCheckerService.cs Uses the reflected type for class-level features.
framework/​src/​Volo.Abp.EntityFrameworkCore/​Volo/​Abp/​EntityFrameworkCore/​EntityHistory/​EntityHistoryHelper.cs Respects auditing attributes on overridden properties.
framework/​src/​Volo.Abp.Cli.Core/​Volo/​Abp/​Cli/​ServiceProxying/​CSharp/​CSharpServiceProxyGenerator.cs Validates generated code inputs and confines output paths.
framework/​src/​Volo.Abp.Cli.Core/​Volo/​Abp/​Cli/​LIbs/​InstallLibsService.cs Restricts package-controlled copying and cleaning.
framework/​src/​Volo.Abp.Cli.Core/​Volo/​Abp/​Cli/​Auth/​AuthService.cs Restricts token-file permissions on supported Unix targets.
framework/​src/​Volo.Abp.Authorization/​Volo/​Abp/​Authorization/​MethodInvocationAuthorizationService.cs Uses the reflected type for class-level authorization.
framework/​src/​Volo.Abp.Auditing/​Volo/​Abp/​Auditing/​JsonAuditSerializer.cs Honors inherited auditing exclusions.
framework/​src/​Volo.Abp.Auditing/​Volo/​Abp/​Auditing/​AuditingHelper.cs Adds a comment explaining inherited-method auditing.
framework/​src/​Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy/​Pages/​Abp/​MultiTenancy/​AbpTenantAppService.cs Bounds tenant names before normalization and lookup.
docs/​en/​release-info/​migration-guides/​abp-11-0.md Documents security behavior and migration requirements.

Review effort: Balanced

@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 64.96164% with 137 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.67%. Comparing base (af5d172) to head (d7296a8).
⚠️ Report is 31 commits behind head on rel-11.0.

Files with missing lines Patch % Lines
...plication.Tests/Pages/StoredValueCacheKey_Tests.cs 0.00% 58 Missing ⚠️
...ation.Tests/Menus/CacheInvalidationTiming_Tests.cs 0.00% 28 Missing ⚠️
...o.CmsKit.Application.Tests/SortingPrivacy_Tests.cs 0.00% 13 Missing ⚠️
...cation.Tests/Blogs/BlogInteractionFeature_Tests.cs 0.00% 10 Missing ⚠️
...viceProxying/CSharp/CSharpServiceProxyGenerator.cs 90.00% 2 Missing and 5 partials ⚠️
...tion.Tests/Menus/MenuItemPublicAppService_Tests.cs 0.00% 6 Missing ⚠️
...Volo.Abp.Cli.Core/Volo/Abp/Cli/Auth/AuthService.cs 75.00% 4 Missing and 1 partial ⚠️
...lo/CmsKit/Public/Menus/MenuItemPublicAppService.cs 83.33% 2 Missing and 1 partial ⚠️
...FrameworkCore/EntityHistory/EntityHistoryHelper.cs 50.00% 0 Missing and 2 partials ⚠️
...ancy/Pages/Abp/MultiTenancy/AbpTenantAppService.cs 66.66% 0 Missing and 1 partial ⚠️
... and 4 more
Additional details and impacted files
@@             Coverage Diff              @@
##           rel-11.0   #26579      +/-   ##
============================================
- Coverage     51.80%   51.67%   -0.13%     
============================================
  Files          4080     4209     +129     
  Lines        147438   151660    +4222     
  Branches      11521    11867     +346     
============================================
+ Hits          76377    78373    +1996     
- Misses        68819    70975    +2156     
- Partials       2242     2312      +70     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Library resource path checks remain bypassable through symbolic links and case-sensitive macOS paths, allowing sensitive file exposure or writes outside permitted directories.

3 open issues
5 resolved since last review

Review effort: Balanced

Comment on lines +515 to +516
private static readonly bool IgnoresCase =
RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
Comment on lines +520 to +521
return Path.GetFullPath(path).StartsWith(GetFullDirectory(directory),
(ignoreCase ?? IgnoresCase) ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal);
Comment on lines +101 to +105
var relations = await (from tag in await GetDbSetAsync()
join entityTag in (await GetDbContextAsync()).Set<EntityTag>() on tag.Id equals entityTag.TagId
where tag.EntityType == entityType
select new { tag.Id, tag.Name, entityTag.EntityId })
.ToListAsync(GetCancellationToken(cancellationToken));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants