Skip to content
ITDWeb Security Platform
Threat feedIncidents & VulnerabilitiesHistoryGlossarySecurity GuidesBy frameworkFree Tools
ITD
  • Threat feed
  • Threat picture
  • Incidents & Vulnerabilities
  • History
  • Glossary
  • Security Guides
  • By framework
  • Free Tools
Search
  • About ITD
  • Contact
  • Privacy Policy
  • Terms of Use
  • Disclaimer
tag

TOCTOU

1 article with this tag

2026-11-15

What is TOCTOU: when the state changes between the check and the use

TOCTOU is a race condition (CWE-367) caused by checking and using a resource as two separate steps, so the state can change in between. The main defense: drop the separate check and make check-and-use one atomic operation. Use file descriptors, not paths; use transactions and locks for databases.

← All tags
ITDWeb Security Platform

Learn from real incidents. Defend your own site.

This site is a defense-focused web security publication. We do not cover attack techniques or exploits.

Learn

  • Threat feed
  • Threat picture
  • Incidents & Vulnerabilities
  • History
  • Glossary
  • Security Guides
  • By framework
  • Free Tools
  • Tags

Legal

  • About ITD
  • Contact
  • Privacy Policy
  • Terms of Use
  • Disclaimer
  • Data sources and licences

© 2026 ITD

Operated by JIT Inc.