Skip to content

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

  1. Initial Recon
  2. Exploitation
  3. Conclusion

We have the following credentials given :

wiener:peter
2fabd22d3964429e80b2be939044885d

After 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.

917fa5803c6d43cb833e1ca58178feae

As the Headline says we can grab 20% discount using the discount code PROMO20.

Adding the product to the cart and applying the code -

48bf3506c1574716bfe518c7bb564ada

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.

8ecd4c566f214ddf9d5324ef84ac8dde

Send this POST request to repeater twice.

94ebc1d81eef4617acd4ed8cbeeea5a9

Right Click on any tab and hover on Add tab to group then new tab group

e500d13f9b224700997be1a58edf2078

Select both the tabs and create the group

fb1ac25ee6f1419199c080d5aa74b8ac

Click on the drop down button that is near send button and click on send group in parallel and then click send group (parallel)

6f3461a6b36740179ac2a2d9a2998072

From the proxy set interception off and go to the web page again :

09448a0dcdb945a9b5e64ca64fbca112

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

30e24bf717ef416d9c056e3aa6cf5cbc

We can see we have managed to decrease the price under $50 and now can place the order :

2aacfdb1e6e84a84aa8ea988a606c8d2

Challenge Solved!!

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.