Skip to content
Business logic Write-up Beginner

A business logic error bug worth 600$

The referral programme credited the referrer with a bonus once the referred user activated a paid plan, but the bonus was not reversed when that user cancelled and received a refund. An attacker could repeatedly refer themselves, pay for a plan, collect the bonus, then cancel for a refund, keeping the bonus each time.

Deep Patidar Follow

Published on itsdeepceh.medium.com

Bounty$600 View original

Deep Patidar here, i hope all are doing good with good health. I am sharing my recent finding on hackerone private program, as terms and conditions i can not disclose the name of the program so call as target.com

Deep Patidar, on itsdeepceh.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 referral bonus was credited on payment but never reversed when the payment was refunded and the subscription cancelled.

Impact

An attacker could repeatedly obtain referral bonuses without net cost, accumulating wallet credit that could be used for premium subscriptions.

What the attacker needed

A free account; ability to create new accounts; ability to pay for a plan and request refund

How it was found

  1. Log in and open the billing tab to find the refer-a-friend option.
  2. Use the referral link to sign up a new account and activate a paid plan.
  3. Check the original account's wallet to see the referral bonus credited.
  4. Request a refund and cancel the subscription on the new account.
  5. Confirm the referral bonus remains in the original account's wallet.

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 referral programme pays you a reward when someone you invite signs up and pays. The site paid the reward as soon as the payment went through, but when the new user asked for their money back and cancelled, the site did not take the reward back. By repeating this, the person earned rewards without actually spending money.

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.