Skip to content
Business logic Write-up Intermediate

Infinite Money Logic Flaw

A discount coupon applied to gift card purchases made the gift card cost less than its redemption value, allowing a user to repeatedly buy and redeem gift cards for a small profit each time. An attacker could automate this to accumulate unlimited store credit and buy expensive items.

osintteam.blog

Published on osintteam.blog

The “infinite money” flaw in this lab stems from a subtle weakness in the purchasing and gift-card redemption workflow. The application allows users to buy a $10 gift card and then redeem it for store credit.

Bash Overflow, on osintteam.blog

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the discount coupon was applied to the gift card purchase price without adjusting the redemption value, creating a mismatch between cost and credit received.

Impact

Attackers could generate unlimited store credit or currency equivalents, leading to financial losses, fraud, and inventory depletion.

What the attacker needed

A user account; newsletter subscription for coupon; ability to automate requests

How it was found

  1. Log in and subscribe to the newsletter to get a discount coupon.
  2. Add a gift card to the cart and apply the coupon, then complete the purchase.
  3. Retrieve the gift card code from the confirmation page and redeem it for store credit.
  4. Automate the purchase and redemption using Burp Suite's session handling and macro features.
  5. Use Burp Intruder with null payloads to repeat the automated process many times.
  6. Use the accumulated store credit to buy the target item.

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 write-up has not been written yet. The Original tab links to the source.

A gift card is like a voucher you buy and later redeem for store credit. Here, a discount code made the gift card cheaper than its value, so each time you bought and redeemed one, you gained a small amount of extra credit. By repeating this automatically, you could build up enough credit to buy anything in the store.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.