Security Operations

A retail app lets a customer redeem a single-use voucher twice when two requests arrive at the same instant, because validity is checked and the voucher is marked used in separate steps. How should this vulnerability be classified?

Show the answer

Correct answerA. Race condition

AWhy this is right: Concurrent requests exploit the gap between checking and updating the voucher, which is the defining trait of a race condition.

BWhy not this: A buffer overflow involves writing past a memory boundary with oversized input; nothing here is about memory limits.

CWhy not this: A misconfiguration is a wrong setting; the logic itself is flawed, so no setting change would remove the weakness.

DWhy not this: SQL injection requires attacker-supplied input to alter a database query; here the requests are normal and only their timing matters.

The flaw depends on the timing of two operations on shared state: the check and the update are not atomic, which is a race condition (time-of-check to time-of-use). A buffer overflow needs oversized input overwriting memory, which is not what happens here.