# Race Conditions

> Master race condition vulnerabilities. Learn to exploit TOCTOU flaws, double-spending, and concurrency limits safely in authorized environments.

Canonical: https://codelivly.com/rooms/race-conditions
Last updated: 2026-11-30

| | |
|---|---|
| Level | Advanced |
| Category | Web Security |
| Lessons | 6 |
| Estimated time | 3 h |
| XP | 1900 |

This module explores race condition vulnerabilities, where applications fail to handle concurrent requests securely. You will learn how to exploit Time-of-Check to Time-of-Use (TOCTOU) flaws, bypass usage limits, and trigger double-spending scenarios. The module culminates in a guided lab where you will safely demonstrate a concurrency flaw exploitation using authorized, non-destructive payloads and professional reporting techniques.

## Lessons

1. What is a Race Condition & Why It Matters (30 min)
2. Limit Overrun Attacks (30 min)
3. Single-Packet Timing Techniques (30 min)
4. Multi-Endpoint and Partial-State Races (30 min)
5. Defender's View: Locks, Idempotency, and Atomic Transactions (30 min)
6. Guided Lab: Redeem a Lab Gift Card Twice (30 min)

## Related

- [Learning path: Advanced HTTP & Logic Exploitation](https://codelivly.com/learning-paths/advanced-http-logic-exploitation)
- [All rooms](https://codelivly.com/rooms)
