Skip to content
Business logic Write-up Beginner

Improper Coupon Validation Allows Unlimited Free Voucher Redempti

A certification exam voucher platform let the same coupon code be applied repeatedly, both within one purchase and across multiple accounts. An attacker with one valid coupon could generate unlimited free or discounted vouchers and resell or share them.

Rahul Kumar Follow

Published on medium.com

A critical business logic flaw was discovered in an online certification exam voucher redemption system. This vulnerability enables attackers to reuse a single valid coupon code multiple times, generating unlimited free or heavily discounted vouchers — even across different user accounts.

Rahul Kumar, on medium.com

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 backend never marked a coupon as redeemed and had no per-user or per-order limit on how many times it could be applied.

Impact

An attacker with one valid coupon could generate unlimited free or discounted vouchers and resell or share them, causing direct financial loss to the provider.

What the attacker needed

A valid coupon code; a user account on the platform

The fix

The system should enforce one-time coupon use per account, mark coupons as redeemed on the backend straight after use, and monitor redemption patterns for abuse.

How it was found

  1. Add a voucher to the cart on the exam registration platform.
  2. Apply a valid coupon code.
  3. Increase the number of vouchers before checkout; the discount applies to all of them.
  4. Complete the purchase.
  5. Repeat the process with the same coupon on the same or different accounts.

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 coupon is meant to be used once, like a single-use gift card. Here the website never marked the coupon as used, so the same code kept working again and again, and even on other people's accounts. That let someone get many free or cheap exam vouchers from one code.

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.

More by Rahul Kumar

View all

2 more disclosed reports, best first.

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.