Hacking 100k+ Loyalty Programs for Fun and Profit!
A loyalty rewards API endpoint meant only for admins was publicly documented and callable by ordinary customers, letting them add unlimited points to their own balance. They could then redeem those points for free products, discounts or cash coupons.
blog.securitybreached.org
Published on blog.securitybreached.org
{{media:0}}
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 points-transaction endpoint lacked a server-side authorisation check, so any authenticated customer could call an admin-only function.
Impact
Any customer of an affected store could grant themselves unlimited loyalty points and redeem them for free goods, discounts or cash coupons, causing financial loss to the store.
What the attacker needed
A customer account on an affected store; the store uses the vulnerable rewards app
The fix
The vendor added proper permission checks to the endpoint, and the text says it was fixed.
How it was found
- Sign up on a store that uses the rewards app, which creates a customer account on the third-party rewards platform.
- Read the platform's public API documentation and notice the points-transaction endpoint.
- Call that endpoint while logged in as an ordinary customer.
- Observe that the points balance increases without limit.
- Redeem the points for a free product, discount code or cash coupon.
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 loyalty programme gives you points you can swap for free items or discounts. The company's own instructions listed a command that was supposed to be for staff only, but the website did not check who was using it. So any normal customer could run it and give themselves as many points as they liked.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.