Somewhere this week, an engineer is adding one more safeguard to a login page. The password field already has a lockout policy, a CAPTCHA that appears after a few failures, multi-factor authentication, and an alert that wakes someone up if failed logins spike at 3 a.m.
Two clicks away, on the same site, there is a gift card balance checker. You type in sixteen digits and it tells you, politely and as many times as you like, how much money is on the card.
I find this funny in the way security people find things funny, which is to say I laugh and then I get slightly worried.
My argument in this post is simple. If a correct guess turns into money, the field is a login page, whatever the form label says and whichever team built it. Gift card numbers, coupon codes, referral codes, loyalty point transfers, and store credit all work the same way. They take an input, check it against something valuable, and pay out when the guess is right. A password field does exactly that, and we spent the last fifteen years learning how to protect password fields.
Black Friday is this Friday, and the bots started their warm-up weeks ago. So this seemed like a good moment to walk through why these fields get attacked, why they slip past the usual defenses, and what I would check before the weekend if checkout were mine to look after.
A quick note on where I'm coming from. I work in application security at CredShields, and most of what I read, write, and argue about is how real attacks chain ordinary features together. Money-shaped input fields are my favorite example of that, because every request in the attack looks perfectly normal.
A Gift Card Number Is a Password With a Price Tag
A balance check is a credential check. You send a card number, sometimes with a PIN, and the server gives one of two answers: invalid, or valid with a dollar amount attached. That second answer is worth money to anyone who can collect enough of them.
There is a name for this kind of guessing. The OWASP Automated Threats project calls the payment card version card cracking, where bots try different values until the missing details of a stolen card come back valid. F5 Labs describes the gift card version as cracking numbers to drain stored value. The method is the same in both. Generate candidate numbers, send them in bulk, and keep the ones that come back with a balance.
The numbers on this have moved quickly. F5 Labs looked at three Black Friday seasons on the retail sites it protects. On e-commerce sites, automated traffic on gift card balance checks went from 0.8% in 2023 and 0.6% in 2024 to 11.4% in 2025. On quick-service restaurant sites, the same flow was already busy, at 7.6%, then 13.7%, then 10.1%. Your favorite burger app has been dealing with this for a while.
What makes these fields attractive is how short the path to cash is. A stolen login gives an attacker an account, and from there they still need to find a saved card, loyalty points, or something worth reselling. A confirmed gift card number skips all of that. It can be spent online within minutes or sold to someone who will spend it. The owner usually finds out at the till, holding a card they believe still has $200 on it.
Holiday timing adds pressure. Kasada data cited by American Banker puts bot login traffic in holiday months at 2.5 to 3 times the level of the rest of the year, and the same reporting links the holiday fraud surge to bots and gift card theft. The holidays are also when a lot of freshly loaded cards change hands, so the prize pool is at its biggest exactly when traffic is noisiest.
Try a small exercise before the weekend. Write down every control on your login page: lockouts or throttling, MFA, breached-password checks, alerts on failure spikes. Then write down every control on your gift card balance check. If the second list is shorter, that gap is where this week's attention should go.
Coupon Codes Are Passwords You Printed on a Billboard
A coupon code is a shared secret, which is a generous way to describe something you emailed to your whole mailing list and printed on a bus stop. By lunchtime it's on three coupon sites and somebody's family group chat. I'm fine with that, since public codes are meant to be public. The trouble starts with the rules wrapped around the code, which are usually far stricter than the code itself.
Most promos come with rules like "one per customer," "new customers only," or "can't be combined with other offers." Each of those rules is a security control, even if it was written by the marketing team in a slide deck. When the code gets checked and the rule doesn't, attackers have three easy openings:
Guessing: Personal single-use codes are meant to be secret. If they're short or follow a pattern, such as a word plus a number, a bot can work through the likely values until some come back valid.
Stacking: The checkout validates each code on its own and never asks whether this combination was meant to exist. Three individually valid codes later, the order costs a fraction of its price.
Farming new accounts: "New customers only" turns account creation into the gate, and account creation is easy to automate.
The last one shows up clearly in the data. F5 Labs found that automated traffic on e-commerce account creation rose from 8.3% in 2023 to 15.3% in 2024 and 37.6% in 2025, and its report links that flow to fake accounts opened to claim new-customer promotions. Radware reported fake registrations growing sixfold over the 2025 holiday season. A generous welcome discount makes the sign-up form worth automating.
Guessing also gets cheaper than you might expect, thanks to APIs that accept more than one operation per request. PortSwigger's Web Security Academy shows how GraphQL aliases let a single request try many discount codes while the rate limiter counts it as one call. A limit of ten requests a minute isn't much of a limit when each request carries a hundred guesses.
My view is that most coupon abuse comes from the system around the code: the part that decides who can use it, how many times, and alongside what. That system is usually spread across a promo service, a cart service, and a checkout, each built by different people at different times. An attacker only needs one of those pieces to forget a rule.
The Race Nobody Watches
Here is how most single-use logic works, in plain steps. A request arrives with a code. The server reads the database to see whether the code has been used. It hasn't, so the server applies the discount, and then writes a note saying the code is now used.
Between that read and that write there is a gap, sometimes only a few milliseconds long. If thirty requests carrying the same code arrive inside the gap, all thirty read "unused" and all thirty get the discount. Gift cards behave the same way. Thirty orders each check a $50 card, each see $50 on it, and each pay with it.
That gap sounds too small to hit on purpose, and for a long time it mostly was. Then PortSwigger's single-packet attack research showed 20 to 30 requests landing within about a millisecond. Network jitter used to spread parallel requests out. Packing them into a single packet takes the jitter away, so the requests arrive together and race through the check at once.
The clearest public example I know of was published by HackerOne. A bug bounty hunter found a one-time $20,000 fee discount on Stripe and sent 30 parallel requests to accept it. Every one succeeded, which added up to $600,000 of fee-free transactions. Stripe's first fix added a check, and the race condition was still there when the hunter tried again. The bounty was $5,000, which feels low to me, though I may be biased toward the people who find these things.
Two parts of that case stay with me. First, nothing in the attack was malformed. Every request was a normal, authenticated call the API was designed to accept. Second, the first fix failed in a way that looked like success. A check had been added, so on paper the bug was handled, and only sending the same burst again showed that it wasn't.
Rate limiting doesn't help much here. A limit counted per minute never sees a burst that is over in a millisecond, and the attacker only needs one burst per code.
The fix lives in the database. The check and the update have to happen as one step, so the database refuses every request after the first. In practice that means a single conditional update, something like "mark this code as used by this customer, but only if nobody has used it yet," and applying the discount only when that update actually changed a row. When thirty requests arrive together, one changes the row and twenty-nine change nothing, and your code can turn those twenty-nine away cleanly.
Loyalty Points and Stored Balances Count Too
Gift cards and coupons are the obvious examples, and the same logic applies anywhere value lives inside an account. Loyalty points, store credit, prepaid app balances, and referral rewards can all be spent, which makes them all worth stealing. Whatever unlocks them deserves the same attention as a login, because it effectively is one.
Chick-fil-A is the case I keep coming back to. The company disclosed an automated credential stuffing attack against its website and mobile app that ran from December 2022 to February 2023 and reached 71,473 loyalty accounts. Afterwards it froze loaded funds and removed stored payment details on the affected accounts. What the attackers wanted were the balances people had loaded into an app so they could buy lunch a little faster.
Roku saw a version of the same thing in 2024. Credential stuffing reached about 576,000 accounts, and in fewer than 400 of them attackers used stored payment details to buy subscriptions and hardware. A saved card on an account turns a stolen login into a shopping trip.
Referral programs have their own variation. "Give $20, get $20" rewards whoever brings in a new customer, and new customers are exactly what bots can manufacture. A fake account created to claim a welcome offer can also count as someone's referral, so a single automated sign-up flow can pay out twice.
My rule of thumb is to list every place in your product where a customer can hold or receive value, then check that whatever unlocks each one has login-grade limits on it. The list is usually longer than people expect, and the last few items on it are usually the least protected.
Why These Fields Keep Slipping Through
None of this is new, and the teams who build checkout are not careless people. I think these fields slip through for structural reasons, and once you see them it's hard to unsee them.
Login has an owner and a rulebook. Identity teams work from published standards. NIST SP 800-63B-4 requires verifiers to rate limit failed authentication attempts, and PCI DSS sets lockout rules for accounts on systems that handle card data. Gift card balance checks and promo engines rarely have anything equivalent. They usually arrive as product or marketing requests, often with a campaign date attached, and they sit between teams. Marketing owns the offer, engineering owns the code, security owns login, and the balance checker belongs a little bit to everyone.
Scanners look for broken requests. Most automated security testing hunts for input the application shouldn't accept, such as injection payloads, malformed headers, and unexpected data types. A valid gift card number is exactly the input the field was built for, and thirty identical coupon redemptions are thirty well-formed requests. A scanner has nothing to flag. Finding these flaws takes testing that understands what the feature is supposed to allow, which is the whole subject of this piece on business logic vulnerabilities and AI agents on the CredShields blog.
The logs look like happy customers. A drained gift card shows up as a successful order. A stacked discount shows up as a customer who found a great deal. The real signal tends to arrive later, as a support ticket from someone whose balance vanished, or a margin report that looks oddly generous.
Black Friday adds noise on top of all that. F5 Labs found that the share of automated traffic dipped on Black Friday itself, mostly because human traffic grew so much: in 2025, automated volume fell 22% while human volume rose 43%. Radware saw carding and denial-of-inventory attacks peak on the sale days themselves, blending into real checkout traffic. The busiest day for shoppers is also the day an attack is easiest to mistake for good business.
What I'd Check This Week If I Owned Checkout
Most of this list needs no code release, which is handy, because a lot of you are in a code freeze right now. Configuration changes and tests on staging usually fit inside one. Here is what I'd look at, roughly in order of effort:
Count guesses per card and per code. Limits keyed only to IP addresses are easy to spread across a residential proxy network. Add limits on how many times a single gift card number, coupon code, or account can be tried in an hour, whatever IP the attempts come from.
Ask for a PIN on balance checks. A card number on its own is a password with no second factor. A PIN that is long enough makes guessing both values together impractical.
Give the same answer for every failure. If a wrong number and a wrong PIN produce different errors, a bot learns which half it got right. One plain "we couldn't check that card" message gives it nothing to work with.
Make redemption one atomic step. Use the single conditional update from the race section, then prove it on staging by sending 30 identical redemption requests at once. Exactly one should succeed.
Decide which codes can combine, and enforce it on the server. Cap the number of codes per order, check eligibility against the final cart, and check it again whenever the cart changes.
Check every route to the same function. A gift card balance check often exists in the web checkout, the mobile app's API, and sometimes an older API version that nobody switched off. Limits on one route do nothing for the others.
Watch the site-wide failure rate. In a slow campaign, each source stays under every limit. A rising share of failed balance checks or failed coupon attempts across the whole site is usually the first visible sign.
Treat new promos like login changes. Before marketing sends the email, someone should ask how the offer could be abused and what stops it.
Nothing here is exotic; it's the login playbook applied to fields that were never given one.
If you want these flows tested before the bots get to them, this is the kind of abuse path CredShields penetration testing is built around, with every finding written up as a reproduced, replayable attack path your engineers can check for themselves. If your checkout also has logged-in features such as order history or saved addresses, this walkthrough of how one logged-in user can reach everyone's data shows how quickly an ordinary account becomes the way in.
The Login Page Had a Head Start
Login pages didn't always get this much care. They earned it the hard way, through years of breaches, password dumps, and credential stuffing campaigns, until protecting them properly became the obvious default. Gift card fields and coupon boxes are on the same road, a few years behind.
I'd rather we skipped the part where they learn it the hard way. Black Friday makes a good forcing function, too. The traffic and the money are real, and for one weekend the whole company is paying attention to checkout anyway.
So here is my small ask for this week. Open your gift card balance page and your promo code box, and look at them the way you would look at a login form. Count how many guesses they allow and check what they say when a guess is wrong, then send thirty requests at once on staging and see how many come back with money.
If the answers surprise you, I'd love to hear about it. Leave a comment here, or have a look at the CredShields LinkedIn page, where we've been posting about Black Friday attacks all week.
Happy Black Friday, and good luck to everyone on call this weekend!