| name | race-condition-testing |
| description | Race condition and TOCTOU exploitation — parallel request attacks |
| origin | RedteamOpencode |
Race Condition / TOCTOU Testing
When to Activate
- Application has single-use actions (coupons, vouchers, invites)
- Financial operations (transfers, purchases, withdrawals)
- Voting, rating, or counting mechanisms
- Inventory or stock management
- Any operation that should execute exactly once
Tools
- Burp Suite Turbo Intruder
run_tool curl --parallel (HTTP/2 multiplexing)
- Custom Python scripts (asyncio + aiohttp)
- Burp Repeater (send group in parallel)
- GNU parallel
For current-engagement target requests, use plain run_tool curl by default and let
rtcurl load auth.json automatically. Only add explicit Cookie: or
Authorization: headers when intentionally testing alternate-user races or session
override behavior.
Methodology
1. Identify Race Condition Targets
2. Single-Packet Attack (HTTP/2)
3. Turbo Intruder Script
4. Limit Overrun Testing
5. TOCTOU (Time-of-Check to Time-of-Use)
6. Multi-Endpoint Races
7. Partial Construction Race
8. Detection Indicators
9. Cleanup
What to Record
- Endpoint and action with race condition
- Number of parallel requests sent
- Number of successful duplicate executions
- Technique used (single-packet, Turbo Intruder, run_tool curl --parallel)
- Business impact (financial loss, integrity violation, privilege escalation)
- Timing window observed
- Severity: High (financial) to Medium (logic bypass)
- Remediation: database locks, idempotency keys, atomic operations, mutex