Skip to content

Partial evaluation misses ancestor group policies with extendChildren #51144

Description

@ahus1

Area

admin/fine-grained-permissions

Describe the bug

Partial evaluation misses ancestor group policies with extendChildren.

This issue was imported from the Wilson expanded appsec run as WILSON-KC-FGAP-014. The affected behavior is reproducible according to the focused Wilson proof metadata below.

Version

Observed against Keycloak source commit 878eb21cf6733ff09a98d07ec4381de7de071553 on main during the Wilson validation run.

Expected behavior

Make group-policy partial evaluation mirror runtime semantics by expanding the subject's ancestor groups, preserving extendChildren semantics, or evaluating candidate group policies exactly before building allow/deny sets. Add regression coverage for negative parent-group policies with child-only admin membership across direct user reads, search, and count.

Actual behavior

Delegated administrators can enumerate user representations and count/search users that object-level FGAP v2 authorization denies whenever deny rules are modeled on ancestor group policies with extendChildren=true. The flaw is configuration-dependent and read-only, so severity is Medium.


This issue was originally tracked in the private repository. Migrated by @ahus1.

Activity

  1. added
    priority/important
    area/admin/fine-grained-permissions
    on Jul 24, 2026
  2. added theissue type on Jul 24, 2026
  3. self-assigned this
    on Jul 27, 2026
  4. added a commit that references this issue on Aug 20, 2026
    4794328
  5. added a commit that references this issue on Aug 20, 2026
    04027da
  6. added a commit that references this issue on Aug 20, 2026
    f4c56dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Fields

No fields configured for weakness.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions