An application security engineer analyzes transaction execution traces and thread dumps from a multi-threaded microservice responsible for handling account withdrawals. The application verifies an account's available funds prior to deducting the balance and completing the transfer. During high-concurrency peak load testing, automated monitoring detects instances where account balances drop below zero despite validation checks executing successfully without failure. Code analysis confirms that the check and the update operations are executed as non-atomic statements across separate database connections. Which of the following vulnerabilities is demonstrated in this scenario?
- Time-of-check to time-of-use (TOCTOU) race conditionCevap
- BInteger overflow vulnerability
- CServer-side request forgery (SSRF)
- DInsecure direct object reference (IDOR)
Cevap
Time-of-check to time-of-use (TOCTOU) race condition
The correct option correctly identifies the vulnerability as a Time-of-Check to Time-of-Use (TOCTOU) race condition. TOCTOU occurs when a program checks the state of a resource (e.g., account balance) and then acts upon that resource (e.g., executing a withdrawal), but the state changes in the time window between checking and acting due to concurrent execution threads.
Adım Adım Çözüm
Anahtar Kavram
Time-of-Check to Time-of-Use (TOCTOU) and Concurrency Vulnerabilities
Tahmini Süre:2m 0s