liveBook · Manning

Time-of-check to time-of-use

As explained in Fundamentals of Cybersecurity

Time-of-check to time-of-use is a vulnerability caused by a condition changing between its verification and subsequent use.

TOCTOU occurs when a condition changes after a program checks it but before the program acts on it. An attacker may exploit that gap—for example, by replacing a validated file with a malicious one. section 12.3.2

The last ticket

A ticket appears available when you check, but someone else buys it before you complete your purchase. The condition changed between checking and acting. section 12.3.2

How Fundamentals of Cybersecurity covers it

How deep it goes
Defines the timing gap and illustrates it with examples, but does not describe mitigations.
Examples
Uses a last-ticket purchase and replacement of a validated file to illustrate changing conditions.
What you can do after
Understand how attackers can exploit a delay between checking a condition and acting on it.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fundamentals of Cybersecurity. The section links point to the parts of the book it draws on.