All sample scenarios

General Cybersecurity · Advanced

The Single-Use Discount Code That Works Twice

A discount code is meant to be single-use. The server reads used = false, applies the discount, then sets used = true. A tester sends 30 parallel requests and receives the discount 14 times.

What is the root cause and the best fix?

Choose one answer to enable Submit.