Review main Merged

90631[SECURITY] Inherit access to module-related AJAX routes from modules

Oliver Hader CR +2 V +2 Normal +115 −12 updated 09/09/25, 08:03

Commit message

Several AJAX routes are bound to specific backend modules. While
backend modules have proper authorization checks in place, AJAX routes
are open to any authenticated backend user.

This patch introduces a new config option `inheritAccessFromModule` for
AJAX routes which aims to close this gap. It allows to limit access to
a specific AJAX route by inheriting access permissions from the given
backend module. This is done for all AJAX routes which are used
exclusively in specific backend modules. For example, the AJAX route for
ext:recycler is now bound to the ext:recycler backend module, inheriting
access permissions for this specific route from the given backend module
permissions defined in the appropriate be_users / be_groups records.

Review

  • Code review CR +2 Done
    • Oliver Hader +2
  • Verified V +2 Done
    • Oliver Hader +2

Issues 1

Files 9

Review log 3

  1. Oliver Hader uploaded patch set 1 09/09/25, 08:03

  2. Oliver Hader commented on patch set 1 CR +2 V +2 09/09/25, 08:03

    Auto-approved
  3. Oliver Hader merged patch set 2 09/09/25, 08:03