Study. uk . com
  1. Home
  2. All questions
  3. Question 165

CompTIA Security+ study material · question 165 of 611

A program checks that a file is owned by the user, then opens it. An attacker replaces the file between the two steps. Which flaw is this?

  1. Time-of-check to time-of-use
  2. Buffer overflow
  3. Insecure deserialisation
  4. Directory traversal
Show the answer

Answer: A. Time-of-check to time-of-use

The validated state changes before it is used, so the check no longer describes what actually happens.

Challenge yourself on this topic → Study as cards