Skip to content
Business logic Disclosed report Intermediate

Able to purchase a gift card with any amount

The gift card purchase flow trusted a client-supplied amount field and an encoded payment amount, allowing an attacker to pay a tiny sum for a much larger gift card value. The attacker could obtain a high-value gift card for a fraction of its price.

qwacsawd Follow

Originally disclosed on HackerOne

High 8.3 View original
  • Triaged in 11 days
  • Fixed in 5 months
  • Disclosed after 5 months

Description There is a vulnerability in card.starbucks.com.sg that allows an attacker to modify the purchasing value of a starbucks gift card such that he is paying the minimum amount for the maximum value of the gift card.

Attack Summary An attacker is able to pay $0.01 for a $100 gift card and gift the card to himself thus allowing him to use the card.

Steps to Reproduce 1)Visit https://card.starbucks.com.sg/egift/cards.php?cat=Singapore%20Exclusive 2)Fill in the relevant values, set the emails to your starbucks account email and the input value to $300 at the start 3)Use a web proxy to monitor the web traffic and click on the check out button. 4)Change the original values of the request from txtAmount=300&amount=300&txtCustomAmount=300 to txtAmount=0.1&amount=0.1&txtCustomAmount=0.1 and submit the request 5)An encoded string of the value 0.1 will be displayed in the following request as vpc_Amount=XcfYhTj%2BHFIY5c9n8sSCzqDFAxXGgXXoZgF0VVUBvjM%3D, where =XcfYhTj%2BHFIY5c9n8sSCzqDFAxXGgXXoZgF0VVUBvjM%3D is the value 0.1 5)Copy that string and drop the entire request 7)Repeat step 1 to 4, this time change ONLY the value in the variable "amount" so the request would look like this: txtAmount=300&amount=300&txtCustomAmount=300 to txtAmount=300&amount=0.1&txtCustomAmount=300 8)Proceed to click on the check out button and you will be brought from https://card.starbucks.com.sg/egift/checkout.php to https://card.starbucks.com.sg/egift/payment.php where the vpc_Amount is showed in the request. Change the original vpc_Amount value to the copied string XcfYhTj%2BHFIY5c9n8sSCzqDFAxXGgXXoZgF0VVUBvjM%3D 9)Proceed on to submit the request and you will be brought over to the payment page by either visa/mastercard 10)Continue payment as per usual and you will be paying $0.1 for a $300 starbucks card. 11)Since the recipient email is the attacker's email he checks his email to redeem the card and adds it into his starbucks account. 12)The attacker now has a $300 starbucks gift card that he only paid $0.1 for.

Impact

By abusing this function, an attacker could gain unlimited values for his starbucks card.

The original report as published on HackerOne, by qwacsawd. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server trusted client-supplied amount parameters and an encoded payment amount without re-validating them against the intended purchase price.

Impact

An attacker could obtain a high-value gift card while paying only a minimal amount, as shown by paying $0.1 for a $300 card.

What the attacker needed

A web proxy; a Starbucks account email; ability to complete payment

How it was found

  1. Open the e-gift card purchase page for Singapore Exclusive cards.
  2. Fill in the form with the attacker's email and an initial amount of $300.
  3. Use a web proxy to capture the checkout request.
  4. Change the amount fields to a very small value and submit to obtain an encoded payment amount.
  5. Repeat the purchase, changing only the 'amount' field to the small value, then replace the payment amount with the previously obtained encoded string.
  6. Complete payment and redeem the gift card sent to the attacker's email.

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 report has not been written yet. The Original tab links to the source.

When you buy something online, the price should be decided by the shop's server, not by your browser. Here, the website let the buyer change the price in the request, so someone could pay almost nothing and still get a full-value gift card.

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.

More by qwacsawd

View all

1 more disclosed report, best first.

More from Starbucks

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.