Unlimited Reuse of Coupon Code Allows Free Shipping on All Orders on ██████████
A free-shipping coupon code disclosed in an earlier public report could be reused an unlimited number of times on the AWS merchandise store. An attacker could apply it to any number of orders and avoid shipping charges each time.
- Fixed in 51 days
- Disclosed after 3 months
Hi Team,
I hope this report finds you well.
While going through the disclosed report (██████████) I found that the coupon code for free shipping is not redacted and can be used multiple times on any numbers of order on AWS merch store. (██████)
Free Shipping Promo Code (pick one):
United ████: ████████
International: ███
Disclosed Coupon in █████ -
█████
Validation of Coupon -
Before applying coupon ██████████
After applying coupon (██████) ████████
As you can see the shipping is now free, and if it wasnt free it would have cost ~ $43
Looks like the system only validates whether the coupon string exists and is active. Each time the coupon is applied, the system accepts it and recalculates shipping cost as ₹0.
This results in a persistent ability to bypass shipping charges on every future order, with no expiration, tracking, or redemption log.
This is a classic business logic flaw where a missing server-side usage validation check leads to direct monetary loss.
Please help take look.
Kind regards
Impact
-
Unlimited free shipping for attacker indefinitely.
-
Can be automated with scripts to mass-create orders with no shipping cost.
-
Direct financial impact proportional to shipping fees per order.
-
Potential abusive reselling or arbitrage if physical goods are involved.
-
Violates intended business rules and promotion limitations.
Context
The target is the AWS merchandise store, reached through the AWS VDP on HackerOne. The feature in question is the free shipping coupon: a promotional code that a customer enters at checkout to have the shipping cost recalculated to zero.
The report is a follow-up on an earlier, already disclosed report. That earlier report contained the free shipping promo codes in plain text, and the codes were never redacted. The researcher noticed this and tested whether the leaked codes still worked.
Setup
No special accounts, roles or tooling are described. The researcher worked against the public merch store as an ordinary shopper, using the coupon codes found in the previously disclosed report. The precondition is simply that the earlier report is public and that its coupon strings were left visible.
Finding it
While reading the disclosed report, the researcher saw that the free shipping coupon code had not been redacted. The disclosed text contained a block listing the codes:
Free Shipping Promo Code (pick one):
United ████: ████████
International: ███
The codes were presented as a choice between a United code and an International code. Because the strings were public, anyone reading the disclosure could take them and try them at checkout. The researcher did exactly that, and validated the coupon on the store.
Exploitation
Step 1: Take the code from the public disclosure
The coupon string is copied from the disclosed report. No guessing or brute force is involved; the value is simply read from the public text.
Step 2: Apply the coupon before checkout
The researcher first records the order with shipping charged, before applying the coupon. The report shows this state as a screenshot, but the image is not reproduced here.
Step 3: Apply the coupon and observe the recalculation
After entering the coupon, the shipping line is recalculated. The report again shows the result as a screenshot. The researcher states plainly that the shipping is now free, and that without the coupon it would have cost approximately $43.
Step 4: Repeat on further orders
The same code is accepted again on any number of orders. Each time it is applied, the system accepts it and recalculates shipping to ₹0. There is no indication that the code is consumed, expired, or logged as redeemed.
Root cause
The researcher's reading of the behaviour is that the system only validates whether the coupon string exists and is active. There is no server-side check of how many times that string has already been used, by whom, or on which orders. Because the only condition is existence plus active status, every application of the code succeeds and the shipping cost is set to zero again.
The report describes this as a classic business logic flaw in which a missing server-side usage validation check leads to direct monetary loss.
Impact
The researcher lists the following consequences:
- Unlimited free shipping for the attacker, indefinitely.
- The process can be automated with scripts to mass-create orders with no shipping cost.
- Direct financial impact proportional to the shipping fee per order.
- Potential abusive reselling or arbitrage if physical goods are involved.
- Violation of the intended business rules and promotion limitations.
The report was rated low severity. The impact scales with the shipping fee and with order volume, and the arbitrage and reselling angle is hedged on physical goods actually being involved.
Fix
The report does not describe a fix or a change made by the vendor. Based on the root cause the researcher identified, the missing control is a server-side usage validation: the coupon should be checked against a redemption record so that a code intended as a one-off promotion cannot be applied repeatedly, and each redemption should be tracked.
Variants to test
- Leaked promo codes in public disclosures. Take any coupon, gift code or discount string that appears in a disclosed report or public write-up and try it at checkout. A positive result is the discount being applied at all, which shows the code was never rotated after disclosure.
- Repeat application of the same code. Apply a valid coupon, complete or abandon the order, then apply it again on a new order. A positive result is the discount being granted a second time with no error about prior use.
- Concurrent application. Apply the same code from two sessions at once. A positive result is both orders receiving the discount, which points to a missing or non-atomic redemption check.
- Case and whitespace variations. Submit the code with different casing or surrounding whitespace. A positive result is the variant being accepted as a distinct valid code, which suggests the lookup is loose and the usage record, if any, is keyed on the raw string.
- Combination with other promotions. Stack the free shipping code with another discount. A positive result is both being applied, which indicates the promotion rules are not enforced server-side.
Hunting notes
This bug sits at the intersection of two things hunters should watch for: business logic around promotions, and information left in public disclosures. The signal during recon is a disclosed report that contains a coupon, promo or gift code in plain text. From there the test is cheap: apply the code and see whether it is still live, then apply it again and see whether the system remembers.
The impact case here rests on two facts the researcher demonstrated: the code still worked after public disclosure, and it worked repeatedly, with the shipping line recalculated to zero each time. The dollar figure attached to a single order gives the program a concrete measure of the loss per redemption, and the automation angle extends that to volume. That combination, a live leaked secret plus a missing server-side limit, is what the researcher highlighted.
What happened, in plain words
A researcher was reading a bug report that had already been made public on HackerOne, a website where security researchers report problems to companies. That earlier report contained a free shipping coupon code for the AWS merchandise store. The earlier report contained a free shipping coupon code, a short string of characters that a shopper types in at checkout to have the shipping cost removed. The code had not been hidden or blanked out before the report was published, so anyone reading it could see the code.
The researcher copied that code and tried it on the shop. It worked. Then the researcher tried it again, on another order, and it worked again. And again. The shop never remembered that the code had already been used. Every time the code was entered, the shipping cost was recalculated to zero. The researcher reported this as a business logic flaw: a problem not in the code crashing or in a password being weak, but in the rules of how the shop is supposed to behave. The report was rated low severity.
This article walks through the report step by step, explaining each idea from scratch.
Context
The target
The target is the AWS merchandise store. "Target" is the thing being tested: here, a public shopping website. It was reached through the AWS VDP on HackerOne. A VDP, or vulnerability disclosure programme, is a formal channel a company sets up so that people can report security problems to it safely. HackerOne is the platform that hosts these programmes and the reports submitted to them.
The feature
The feature in question is the free shipping coupon. A coupon is a promotional code: a short string a customer types into a box at checkout. The shop looks the code up and, if it recognises it, changes the price. In this case the change is that the shipping cost is recalculated to zero.
Think of a paper voucher handed out at a shop opening: it is meant to be used once, by one customer, during the promotion. If the shop never marks the voucher as used, the same voucher can be spent over and over.
Why this report exists
The report is a follow-up on an earlier, already disclosed report. "Disclosed" means the report was published, so anyone can read it, not just the company and the researcher. That earlier report contained the free shipping promo codes in plain text, and the codes were never redacted. "Redacted" means sensitive details are replaced with blocks or asterisks before publishing. The researcher noticed the codes were still visible and tested whether they still worked.
Setup
No special accounts, roles or tooling are described. The researcher worked against the public merch store as an ordinary shopper, using the coupon codes found in the previously disclosed report. The precondition is simply that the earlier report is public and that its coupon strings were left visible.
In plain terms: you do not need to be an employee, you do not need special software, and you do not need to log in as anyone unusual. You need a browser, the public shop, and a code that somebody else already published by mistake.
Finding it
While reading the disclosed report, the researcher saw that the free shipping coupon code had not been redacted. The disclosed text contained a block listing the codes:
Free Shipping Promo Code (pick one):
United ████: ████████
International: ███
Line by line, in plain words:
- The first line is a heading. It tells the reader that there is a free shipping promo code and that they should pick one of the options below.
- The second line is the domestic option. "United" is one of the two options listed, and the blocks after the colon are where the actual code characters sat. In this article those characters are replaced with blocks, because a working code is a secret: publishing it again would repeat the original mistake.
- The third line is the international option, again with the code characters replaced by blocks.
The codes were presented as a choice between a United code and an International code. Because the strings were public, anyone reading the disclosure could take them and try them at checkout. The researcher did exactly that, and validated the coupon on the store.
"Validating" here simply means checking that the code is accepted and does what it claims. The reason this step matters is that a leaked code is only a problem if it still works. The researcher's question was: did they?
Exploitation
Step 1: Take the code from the public disclosure
The coupon string is copied from the disclosed report. No guessing or brute force is involved; the value is simply read from the public text.
"Brute force" means trying huge numbers of guesses until one works. That is not what happened here. The code was written out in the open, so the researcher only had to copy it. This is why leaked secrets are dangerous: the hard part, finding the value, has already been done for the attacker.
Step 2: Apply the coupon before checkout
The researcher first records the order with shipping charged, before applying the coupon. The report shows this state as a screenshot, but the image is not reproduced here.
Why do this first? Because to prove that a coupon changes something, you need a "before" picture. If you only show the final price, nobody can tell whether the coupon did anything. Recording the order with shipping still charged gives a baseline to compare against.
Step 3: Apply the coupon and observe the recalculation
After entering the coupon, the shipping line is recalculated. The report again shows the result as a screenshot. The researcher states plainly that the shipping is now free, and that without the coupon it would have cost approximately $43.
"Recalculated" means the shop runs its pricing again with the coupon taken into account. The $43 figure matters because it turns an abstract bug into a concrete amount of money: each time this code is used, the shop gives up roughly that much in shipping revenue.
Step 4: Repeat on further orders
The same code is accepted again on any number of orders. Each time it is applied, the system accepts it and recalculates shipping to ₹0. There is no indication that the code is consumed, expired, or logged as redeemed.
Three words here are worth unpacking:
- Consumed: used up. A one-time code should stop working after its first successful use.
- Expired: past its end date. A promotion code should stop working after the campaign ends.
- Logged as redeemed: recorded as having been used. Even if a code is allowed several times, the shop should keep a record of each use so it can spot abuse.
The researcher saw none of these three behaviours. The code behaved as if it were brand new every single time.
Root cause
The researcher's reading of the behaviour is that the system only validates whether the coupon string exists and is active. There is no server-side check of how many times that string has already been used, by whom, or on which orders. Because the only condition is existence plus active status, every application of the code succeeds and the shipping cost is set to zero again.
"Server-side" is the key phrase. When you shop online, two computers are involved. Your browser runs on your own machine, and the shop's server is the computer that holds the real prices, the real stock and the real rules. Anything your browser decides can be changed by the person using the browser, so important checks must happen on the server. Here, the server checked only two things: does this code exist, and is it switched on? It never asked how many times the code had already been used.
The report describes this as a classic business logic flaw in which a missing server-side usage validation check leads to direct monetary loss. "Business logic" means the rules of how the business is supposed to work, such as "this promotion is one use per customer". A business logic flaw is when the software follows its own rules correctly but those rules are incomplete or can be bent. Nothing crashes; the shop simply does something it never intended.
Impact
The researcher lists the following consequences:
- Unlimited free shipping for the attacker, indefinitely.
- The process can be automated with scripts to mass-create orders with no shipping cost.
- Direct financial impact proportional to the shipping fee per order.
- Potential abusive reselling or arbitrage if physical goods are involved.
- Violation of the intended business rules and promotion limitations.
A few of these deserve a plain explanation:
- Automated with scripts: a script is a small program that repeats an action many times without a human clicking. If a person can place one free-shipping order, a script can place hundreds. The missing check is what makes automation worthwhile, because nothing ever blocks the second attempt.
- Proportional to the shipping fee per order: the loss is not a single fixed amount. It grows with the number of orders and with how much shipping each order would have cost.
- Arbitrage: buying something cheaply in one place and selling it for more in another. If shipping is free for the attacker but paid by ordinary buyers, the attacker can undercut them. The report hedges this on physical goods actually being involved.
The report was rated low severity. Severity is a rough measure of how much damage a bug can cause. A low rating fits a bug that costs shipping fees rather than exposing customer data or letting someone take over accounts. The impact still scales with the shipping fee and with order volume.
Fix
The report does not describe a fix or a change made by the vendor. Based on the root cause the researcher identified, the missing control is a server-side usage validation: the coupon should be checked against a redemption record so that a code intended as a one-off promotion cannot be applied repeatedly, and each redemption should be tracked.
In everyday terms: the shop needs a list of which vouchers have already been spent, and it needs to check that list on its own server every time a code is entered, not just check that the code looks familiar.
Variants to test
These are related tests in the same area. Each one is a small variation on the idea "does the shop remember that a code was used?"
- Leaked promo codes in public disclosures. Take any coupon, gift code or discount string that appears in a disclosed report or public write-up and try it at checkout. A positive result is the discount being applied at all, which shows the code was never rotated after disclosure. "Rotated" means replaced with a new value so the old one stops working.
- Repeat application of the same code. Apply a valid coupon, complete or abandon the order, then apply it again on a new order. A positive result is the discount being granted a second time with no error about prior use.
- Concurrent application. Apply the same code from two sessions at once. A "session" is one logged-in visit to a site, usually remembered by a cookie, which is a small piece of data your browser stores for that site. A positive result is both orders receiving the discount, which points to a missing or non-atomic redemption check. "Non-atomic" means the check and the recording of the use do not happen as one indivisible step, so two requests arriving at the same moment can both pass the check before either one records the use.
- Case and whitespace variations. Submit the code with different casing or surrounding whitespace. A positive result is the variant being accepted as a distinct valid code, which suggests the lookup is loose and the usage record, if any, is keyed on the raw string. In other words, if the shop treats
CODEandcodeas two different codes, a usage limit on one may not apply to the other. - Combination with other promotions. Stack the free shipping code with another discount. A positive result is both being applied, which indicates the promotion rules are not enforced server-side.
Hunting notes
This bug sits at the intersection of two things hunters should watch for: business logic around promotions, and information left in public disclosures. The signal during recon is a disclosed report that contains a coupon, promo or gift code in plain text. "Recon" is short for reconnaissance: the reading and looking around you do before testing anything. From there the test is cheap: apply the code and see whether it is still live, then apply it again and see whether the system remembers.
The impact case here rests on two facts the researcher demonstrated: the code still worked after public disclosure, and it worked repeatedly, with the shipping line recalculated to zero each time. The dollar figure attached to a single order gives the program a concrete measure of the loss per redemption, and the automation angle extends that to volume. That combination, a live leaked secret plus a missing server-side limit, is what the researcher highlighted.
Glossary
- API: a way for one piece of software to talk to another, like a waiter taking your order to the kitchen.
- Automation / script: a small program that repeats an action many times without a human clicking each time.
- Brute force: trying huge numbers of guesses until one works.
- Business logic: the rules of how a business is supposed to work, such as a promotion being one use per customer.
- Business logic flaw: a bug where the software follows its rules correctly but the rules are incomplete or can be bent, so the shop does something it never intended.
- Concurrent: happening at the same time, as when two requests arrive together.
- Consumed: used up, so a one-time code stops working after its first successful use.
- Cookie: a small piece of data a website stores in your browser, often used to remember who you are between page loads.
- Coupon / promo code: a short string a customer types at checkout that changes the price if the shop recognises it.
- Disclosed: published so that anyone can read it, not just the company and the researcher.
- Expired: past its end date, so a promotion code should stop working.
- HackerOne: a platform that hosts vulnerability disclosure programmes and the reports submitted to them.
- Impact: the real-world consequence of a bug, such as money lost or data exposed.
- Non-atomic: a check and the recording of its result do not happen as one indivisible step, so two simultaneous requests can both pass before either records anything.
- Rated low severity: a rough measure of how much damage a bug can cause; low fits a bug that costs shipping fees rather than exposing data or taking over accounts.
- Recalculated: the shop runs its pricing again with the coupon taken into account.
- Recon (reconnaissance): the reading and looking around you do before testing anything.
- Redacted: sensitive details replaced with blocks or asterisks before publishing.
- Redeemed: recorded as having been used.
- Rotated: replaced with a new value so the old one stops working.
- Server: the computer that holds the real prices, stock and rules for a website, as opposed to your own browser.
- Server-side check: a check performed on the shop's own computer, which the person using the browser cannot change.
- Session: one logged-in visit to a site, usually remembered by a cookie.
- Target: the thing being tested, here a public shopping website.
- VDP (vulnerability disclosure programme): a formal channel a company sets up so people can report security problems to it safely.
- Validating: checking that something, such as a coupon, is accepted and does what it claims.
- Vendor: the company that runs the product or service being tested.