A Critical Referral Logic Flaw Enabling Unlimited Financial Expos
The referral system awarded 100 CHF to both referrer and referred user immediately upon registration, without verifying email ownership or preventing self-referral. An attacker could create multiple accounts, apply their own referral code, and generate unlimited reward balances.
Published on medium.com
Modern platforms monetize through premium features and reward users with real credit for inviting friends. Done right, this drives real growth.
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 reward was granted at registration without verifying that the referred user was a unique, real person, and there were no limits on self-referral or referral chaining.
Impact
The attacker could accumulate unlimited reward balances, creating financial liabilities that could later be paid out, though the triager noted the rewards were initially pending and some payouts were refused due to invalid data.
What the attacker needed
A free account; ability to create multiple accounts; no email verification required
The fix
The referral system should be fixed by verifying unique users before granting rewards, preventing self-referrals and chaining, and adding volume limits and abuse detection.
How it was found
- Create an account and get your referral code from the affiliate dashboard.
- Register a second account using an arbitrary or attacker-controlled email address.
- Redeem your own referral code with the new account to trigger rewards for both accounts.
- Repeat the process with new accounts to generate unlimited rewards.
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 program gives you a reward for inviting friends. Here, the reward was given as soon as a new account was made with your code, even if the new account was also yours. By making many accounts and using your own code each time, you could collect the reward over and over.
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.