Thailand - Insecure Direct Object Reference permits an unauthorized user to transfer funds from a victim using only the victims Starbucks card
A Starbucks card transfer form trusted a card number supplied by the client, so a user could swap in someone else's card number and move funds from that victim's balance. The transfer showed an error but still moved the requested amount, which could be confirmed on the card information page.
- Disclosed after 42 days
Summary by the program
nnez discovered that a hacker could transfer funds from one Starbucks card to another by inspecting the form with Google Chrome DevTools and then change the forms "CardNumber" value to a victim's valid Starbucks card number. If the value entered for the "FullAmount" form field did not exceed the actual victim's Starbucks card balance, the transfer would generate an error message but successfully transfer the "FullAmount" value which could be validated by navigating back to the Card Information page.
@nnez — thank you for reporting the original vulnerability and for confirming the resolution.
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 the client-supplied card number as the source of funds without verifying that the card belonged to the authenticated user.
Impact
An attacker could transfer funds from a victim whose valid card number they entered, provided the amount did not exceed that card's balance, despite an error being shown.
What the attacker needed
A Starbucks account; victim's valid card number; browser developer tools
The fix
The report notes the issue was resolved; the text does not describe how.
How it was found
- Open the card transfer form and inspect it with the browser developer tools.
- Replace the card number field value with a victim's valid card number.
- Submit a transfer amount that does not exceed the victim's balance.
- Note the error message, then check the card information page to confirm the funds moved.
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 card transfer page accepted the card number from the browser instead of checking on the server that the card belonged to the person making the request. By editing that value in the browser's developer tools, an attacker could name someone else's card as the source and pull money off it. This is called an insecure direct object reference: the app lets you point at any object by its identifier without checking you own it.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.