← Back to Baseline

MB-0100

Automated Recorded Admin role assignments have relational integrity

MB-C02 Admin & Auth Hardening High

Collected admin_user, authorization_role and authorization_rule rows have valid user/group parent relationships, no cyclic group ancestry or orphan rules, and each active admin has one assigned group with ACL rules. This checks relational assignment integrity, not business approval, least privilege or effective authorization policy.

Overview

Collected admin_user, authorization_role and authorization_rule rows have valid user/group parent relationships, no cyclic group ancestry or orphan rules, and each active admin has one assigned group with ACL rules. This checks relational assignment integrity, not business approval, least privilege or effective authorization policy.

Why it Matters

Admin users without valid role assignments are hard to review and can hide stale privileged access. Broken relationships between admin_user, authorization_role, and authorization_rule make authorization behavior unpredictable and weaken accountability.

Every active admin account should map cleanly to an active, intentional role so access remains explicit and auditable.

Verification Steps

Manual Verification

  1. Read authorization tables with a read-only account and correct prefix.
  2. Review parent types, cycles, orphan rules and active users with missing/multiple group assignments.
  3. Redact account data in shared evidence.

Command / Review Sample

SELECT role_id, parent_id, role_type, user_id FROM authorization_role;
SELECT role_id, resource_id, permission FROM authorization_rule;

Use the assessed Magento project and the appropriate application or read-only review account. Replace example hosts, paths and identifiers with the assessment scope; configuration and source fragments are illustrative.

Remediation / Fix Guidance

  1. Investigate and change: Review the reported user_id, role_id and relational finding type in Magento Admin users/roles. Repair missing groups, orphan references or cyclic ancestry through the supported administration workflow, not ad hoc ACL SQL.
  2. Validate the change: Confirm each active account has a valid intended role with ACL rules and rerun the relationship check. Separately review business approval and least privilege.
  3. Recheck MB-0100: Read back the effective setting or role/runtime state from the same source used by the check, then test the affected authentication, application or integration flow in staging. A changed file alone does not establish that the production worker uses it.

Examples

Illustrative examples only. Interpret them within the current revision criterion above; missing collection evidence is unresolved, never PASS.

Fail Example

An active Admin lacks a valid group assignment or group parents form a cycle.

Pass Example

Each active Admin has one coherent group assignment with ACL rules and the complete graph has no assessed integrity defects.

Scope and Evidence Limits

Rule revision: 3. Target modes: LOCAL.

Collected admin_user, authorization_role and authorization_rule rows have valid user/group parent relationships, no cyclic group ancestry or orphan rules, and each active admin has one assigned group with ACL rules. This checks relational assignment integrity, not business approval, least privilege or effective authorization policy.

This check covers only the collected observation. Missing collection scope, external controls and runtime behavior require separate evidence.

Catalog coverage describes implementation capability, not a scan outcome. An incomplete manual review cannot establish that the criterion is satisfied.

References