← Back to Baseline

MB-0009

Automated Configured admin session lifetime is at most 900 seconds

MB-C02 Admin & Auth Hardening Medium

The effective default-scope Magento admin/security/session_lifetime setting resolved from env.php, config.php, core_config_data or actual installed module defaults is a positive integer not exceeding 900 seconds.

Overview

The effective default-scope Magento admin/security/session_lifetime setting resolved from env.php, config.php, core_config_data or actual installed module defaults is a positive integer not exceeding 900 seconds.

Why it Matters

An unattended or stolen authenticated session gives access without another password prompt. A bounded inactivity lifetime reduces that opportunity.

The configured value is not an absolute guarantee that every token expires after exactly fifteen minutes; actual session behavior and custom authentication are separate evidence.

Verification Steps

Manual Verification

  1. Resolve admin/security/session_lifetime, checking locked env.php/config.php values before database values and installed module defaults.
  2. Verify it is a positive integer at most 900.
  3. Store-specific behavior or observed logout timing requires a separate session test.

Command / Review Sample

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

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 resolved admin/security/session_lifetime value and its source. Configure the approved timeout through Stores > Configuration > Advanced > Admin > Security or the managed configuration pipeline; review the Magebean 900-second policy before applying a different organizational threshold.
  2. Validate the change: Start an Admin session, leave it idle beyond the approved timeout, and verify server-side expiry and reauthentication as well as the rerun setting observation.
  3. Rerun MB-0009 against the same release, profile and relevant file/key/package scope; compare the new evidence and inspect any independent collection gaps.

Examples

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

Fail Example

admin/security/session_lifetime = 3600

Pass Example

admin/security/session_lifetime = 900
# Effective default-scope value, not just an unused declaration.

Scope and Evidence Limits

Rule revision: 3. Target modes: LOCAL.

The effective default-scope Magento admin/security/session_lifetime setting resolved from env.php, config.php, core_config_data or actual installed module defaults is a positive integer not exceeding 900 seconds.

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