Course contentsShow
← Security
Lesson 906 of 3,05219. Web Security - Business Logic VulnerabilitiesFree lesson

Exploiting Race Conditions with Concurrent Requests

Master techniques for sending simultaneous HTTP requests using tools like Turbo Intruder and custom scripts.

Exploiting Race Conditions with Concurrent Requests

What you'll learn: How to exploit race conditions by sending multiple HTTP requests at precisely the same time using specialized tools and techniques.

Now that you understand race conditions exist in web applications, you need to actually trigger them—and that requires precise timing. Sending two requests manually, one after another, won't work because the server processes them sequentially. You need to send them simultaneously so they arrive and start processing at nearly the same instant.

Why Timing Matters

Think of a race condition exploit like two people trying to grab the last concert ticket at exactly the same moment. If one person arrives even a second later, the ticket's already gone. Similarly, you need multiple HTTP requests to hit the vulnerable code path before any single request completes its check-then-act sequence.

Tools for Concurrent Requests

Burp Suite's Turbo Intruder is the most popular tool for this. It uses HTTP/2 connection multiplexing to send dozens or hundreds of requests in a tight window—often within milliseconds of each other. You configure it with a Python script that defines which requests to send and how many concurrent connections to use.

Custom scripts (Python with threading, asyncio, or specialized libraries) also work. You create multiple threads or async tasks that fire requests at the same target endpoint simultaneously.

The Exploitation Process

  1. Identify a vulnerable endpoint (e.g., coupon redemption, balance withdrawal)
  2. Craft the exploit request with parameters for the race condition
  3. Configure your tool to send 10-100+ identical or related requests concurrently
  4. Launch the attack and observe if the race window was hit
  5. Check results (multiple successful redemptions, negative balance, etc.)

Key Takeaway: Exploiting race conditions requires sending precisely-timed concurrent requests using tools like Turbo Intruder or custom scripts that can bypass normal sequential processing and hit the vulnerable TOCTOU window.