Simple Bugs — Buying Everything for Free!!!
The coupon code input field lacked rate limiting, allowing an attacker to brute-force coupon codes and obtain active coupons that reduced the price of items to zero. This enabled the attacker to buy products for free.
Published on infosecwriteups.com
Hello Everyone I am Vishal Vishwakarma [@rootxvishal] I hope you enjoy it and learn something new from it.
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 lack of rate limiting on the coupon code input field allowed brute-force guessing of valid coupon codes.
Impact
Attackers could obtain free items, leading to financial loss and reputational damage for the company.
What the attacker needed
Access to the coupon input field; ability to intercept requests
The fix
The website should implement rate limiting, CAPTCHA, and stronger coupon code generation to prevent brute-force attacks.
How it was found
- Apply a random coupon and intercept the request.
- Observe the error message revealing the coupon format.
- Generate a wordlist of 5-letter combinations.
- Use Burp Intruder to brute-force the coupon codes.
- Obtain active coupons that reduce the price to zero.
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 code is a secret word that gives you a discount when shopping online. The website did not limit how many times someone could try different codes, so an attacker could quickly guess many codes until finding valid ones. This let them get products for free.
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.