Web Security · Business Logic
Time-of-Check to Time-of-Use
Also known as: TOCTOU, Time of Check to Time of Use
A race between checking state and using it, during which that state can change. Use a validated snapshot, atomic operation, or suitable lock. Choose protection based on what can change and who controls it.