Half off a sofa
June gave customers half off on their birthday and let them type in their own. Nine thousand turned out to be born today, and her fix locked it in for good.
The mistake
The birthday discount trusts a date of birth the customer can edit freely, so anyone can claim it on any day just by changing the field to today. The fix locks the field without first undoing the edits, so every fake birthday becomes permanent and those accounts keep getting the discount every year. A field that grants money needs to be checked when it's set (or stay fixed after signup), and abused values need reverting before anything is frozen.
- promotions
- ecommerce
- customer-data
- release
- frontend