← Back to Baseline

MB-R359

HUMAN VERIFICATION REQUIRED ASVS 15.4.2 Atomic state checks

MB-C18 ASVS Level 3 Human Assurance Medium

Checks on a resource's state, such as its existence or permissions, and the actions that depend on them are performed as a single atomic operation to prevent time-of-check to time-of-use (TOCTOU) race conditions. For example, checking if a file exists before opening it, or verifying a user's access before granting it.