Skip to content
Business logic Disclosed report Intermediate

Lack of Controls Allowing for Card and PIN Enumeration Leading to Fraud

The Starbucks card add and balance pages lacked rate limiting, allowing an attacker to enumerate 16-digit card numbers and 8-digit PINs without restriction. An attacker could then take over a loaded card and transfer its funds to their own account.

kylecolson Follow

Originally disclosed on HackerOne

  • Triaged in 46 days
  • Fixed in 4 months
  • Disclosed after 5 months

Summary: The pages https://www.starbucks.com/account/card/addcard and https://www.starbucks.com/account/card/Balance do not properly enforce security controls to limit POST requests. This bug allows attackers to successfully hijack a loaded Starbucks card and transfer all the funds into their own account. Cards linked with auto-reload features could exponentially increase fraud. NOTE: You will need to pass primary authentication before testing these pages. I have set up a temporary account for this purpose.

Card Enumeration: In a POST request to the above https://www.starbucks.com/account/card/addcard URL, if an attacker sets the Register.MyCard attribute to “FALSE” they can enumerate the 16-digit Card Number without limits. Another important note is all Starbucks locations have unactivated cards at their registers. It is highly possible for a threat actor to obtain a 16-digit card number from the next card in line, and sit on the account until it has been loaded up. Furthermore, in my research I've discovered each card only increments a singular digit in their 16-digit number. Because of this, a threat actor can easily discern which cards are about to be purchased, as well as which cards have been recently purchased.

PIN Enumeration: In a POST request to the second https://www.starbucks.com/account/card/Balance URL, an attacker can check the PIN of a card they’ve already added via the previous /addcard Card Enumeration method. If an attacker already knows the 16-digit card number (via Starbucks stores), with the original POST request to the https://www.starbucks.com/account/card/addcard URL, if an attacker sets the Register.MyCard attribute to “TRUE” they can enumerate the 8-digit PIN number without limits. Due to this, an attacker is able to successfully test every PIN number against 16-digit card data.

Fraud/Risk: If an attacker is able to successfully validate PIN and Card information, they now have full access to all funds in the account. At this point they are able to commit fraudulent purchases and even migrate funds off the account onto their own card. Cards linked with auto-reload features could exponentially increase fraud damages.

Documentation: My test card was used in this demonstration. On the attached image, you can see the card number ending in 4769 was successfully processed. In the second image, you can see the PIN correctly enumerating once the PIN ending in 89 was processed.

Remediation: My recommendation is to add velocity checks to both the /addcard and /Balance pages when attempting to add a Starbucks gift card. Additionally, CAPTCHA can be used as another authorization process.

Please let me know if you need additional information to help triage this bug. Thanks!

The original report as published on HackerOne, by kylecolson. 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 application did not implement rate limiting or other anti-automation controls on the card addition and balance check endpoints.

Impact

An attacker could take over a loaded card and transfer all funds, and cards with auto-reload could increase fraud losses.

What the attacker needed

A valid Starbucks account; knowledge of a card number or physical access to cards

The fix

The report recommends adding velocity checks and CAPTCHA to both the add card and balance pages; it does not state that a fix was applied.

How it was found

  1. Log in to the Starbucks website with a valid account.
  2. Send a POST request to the add card page with the Register.MyCard attribute set to FALSE to enumerate card numbers.
  3. Send a POST request to the balance page to check the PIN of a card already added.
  4. Send a POST request to the add card page with Register.MyCard set to TRUE to enumerate the PIN for a known card number.

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.

A gift card has a long number and a secret PIN. The website let someone try many card numbers and PINs quickly without slowing them down. That meant a criminal could guess a real card's details and steal the money on it.

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 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.