Vulnerabilities
TOCTOU Vulnerability
Also known as: Time-of-check time-of-use, TOCTTOU
Definition
A time-of-check to time-of-use race condition where the state checked by a security decision is changed before the corresponding action is performed.
Examples
- Setuid program that checks file ownership with stat() and then opens the path.
- Container escape via TOCTOU on bind-mount paths.
Related terms
Race Condition
A defect where the security or correctness of a system depends on the timing or ordering of concurrent operations, allowing attackers to interleave actions and bypass checks.
Vulnerability
A weakness in a system, application, or process that an attacker can exploit to violate confidentiality, integrity, or availability.
Privilege Escalation
A class of vulnerabilities that lets an attacker gain rights beyond those originally granted, such as moving from a normal user to administrator.
Secure Coding
Secure Coding — definition coming soon.
Directory Traversal
Directory Traversal — definition coming soon.
Memory Corruption
An umbrella term for vulnerabilities where a program writes outside the bounds of intended memory, undermining type-safety, control flow, or data integrity.