← Back to Baseline

MB-0773

Automated Admin secret URL keys enabled

MB-C02 Admin & Auth Hardening Medium

The resolved default-scope native Admin admin/security/use_form_key configuration is enabled. Authenticated route enforcement requires separate verification.

Overview

The resolved default-scope native Admin admin/security/use_form_key configuration is enabled. Authenticated route enforcement requires separate verification.

Why it Matters

Admin URL keys add a native request check that can be lost through configuration drift. Keeping the declaration enabled avoids silently disabling that layer.

The flag is useful evidence only within native authentication and routing; actual enforcement still needs a functional review.

Verification Steps

Manual Verification

  1. Resolve admin/security/use_form_key from deployed locked configuration, database and installed defaults in default scope.
  2. Confirm enabled state.
  3. Test route enforcement separately using a controlled authenticated session.

Command / Review Sample

php bin/magento config:show admin/security/use_form_key

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: Enable Add Secret Key to URLs in native Admin Security or the equivalent managed admin/security/use_form_key configuration. Review custom Admin routes for bypass of the supported framework protection.
  2. Validate the change: Verify the resolved value and an authenticated Admin workflow; URL keys complement rather than replace authorization and CSRF protection.
  3. Recheck MB-0773: 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

admin/security/use_form_key = 0

Pass Example

admin/security/use_form_key = 1; authenticated route enforcement is separately verified.

Scope and Evidence Limits

Rule revision: 1. Target modes: LOCAL.

The resolved default-scope native Admin admin/security/use_form_key configuration is enabled. Authenticated route enforcement requires separate verification.

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