Threats, Vulnerabilities, and Mitigations

Which statements describe a time-of-check (TOC) race condition? (Choose three.)

Choose 3 answers

Show the answer

Correct answersC. Combining the check and the use into one atomic step helps prevent itD. A security check, such as a permission test, runs before the resource is usedE. The resource's state can change after the check but before it is used

AWhy not this: Overwriting adjacent memory with oversized input is a buffer overflow, not a timing flaw.

BWhy not this: Hidden code delivered in a signed update is a malicious update, a supply-side problem unrelated to timing.

CWhy this is right: Atomic operations or locking leave no gap between check and use, which removes the race.

DWhy this is right: The check, such as a permission or existence test, is the time-of-check step that the later action trusts.

EWhy this is right: The gap between check and use lets an attacker alter the resource, so the earlier check is no longer valid.

FWhy not this: Code written into a trusted process's memory at runtime is memory injection, not a check-then-use gap.

A TOC race condition arises when a program checks a resource's state and the state changes before the program acts on it. Making the check and use atomic closes that gap. Overwriting adjacent memory is a buffer overflow, a different flaw.