Lab 1 - Limit overrun race conditions
The Application is Vulnerable to Race Condition and to complete the lab we need to buy the Lightweight "l33t" Leather Jacket at the lowest price.
Date: 4 September 2026
Table of Content
Section titled “Table of Content”Initial Recon
Section titled “Initial Recon”We have the following credentials given :
wiener:peterAfter logging in with that account we can see we have total store credit $50 so we need to manage to adjust the amount of the Lightweight "l33t" Leather Jacket under that strore credit.
As the Headline says we can grab 20% discount using the discount code PROMO20.
Exploitation
Section titled “Exploitation”Adding the product to the cart and applying the code -
We can see we grabbed the discount but it is still not in our budget so what if we send apply discount request more than one will it apply the coupon twice Let’s see.
Send this POST request to repeater twice.
Right Click on any tab and hover on Add tab to group then new tab group
Select both the tabs and create the group
Click on the drop down button that is near send button and click on send group in parallel and then click send group (parallel)
From the proxy set interception off and go to the web page again :
Here we can see coupon code is applied twice instead of once because :
Application recieved two request at once to apply the same coupon code and the code mechanism to check whether the used has used the coupon code identified in both the request cases the coupon code has not been used so it applied the coupon code in both cases as response causing race condition.
Now to complete the lab we need to send atleast 15-20 request in group to make the price fall under 50$ for that just send multiple request to repeater and make them in a group and send all request at once. Let’s see
We can see we have managed to decrease the price under $50 and now can place the order :
Challenge Solved!!
Conclusion
Section titled “Conclusion”The lab was successfully solved by exploiting a race condition in the coupon redemption process. By sending multiple PROMO20 requests simultaneously, the application applied the discount multiple times, allowing us to bring the jacket’s price below our $50 store credit and complete the purchase.