Singapore - Account Takeover via IDOR
An alternate site shared database and cookie credentials with card.starbucks.com.sg. By exploiting an endpoint on the alternate site, an attacker could copy a PHPSESSID cookie value to card.starbucks.com.sg, view user information, update the password and take over accounts.
Originally disclosed on HackerOne
- Triaged in 27 hours
- Fixed in 5 days
- Paid in 3 days
- Disclosed after 2 months
Summary by the program
ko2sec discovered that an alternate site shared database and cookie credentials with card.starbucks.com.sg. By exploiting an endpoint on the alternate site, ko2sec was able to copy a PHPSESSID cookie value from that site over to card.starbucks.com.sg and then see user information, update the password and perform an account takeover. ko2sec was awarded a bounty multiplier for this report as they had also submitted a 2nd report for another site that mimicked this behavior.
@ko2sec — thank you for reporting this 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 alternate site and card.starbucks.com.sg shared the same session cookie namespace and user database, so a session obtained on one site was accepted by the other.
Impact
An attacker could view user information, change passwords and take over accounts on card.starbucks.com.sg.
What the attacker needed
Access to the alternate site; ability to obtain a PHPSESSID from it
The fix
The report says the vulnerability was resolved, but does not describe the fix; likely the sites should stop sharing session cookies and user databases.
How it was found
- Find an endpoint on the alternate site that exposes a PHPSESSID cookie value.
- Copy that PHPSESSID cookie value to card.starbucks.com.sg.
- Use the copied cookie to view user information and update the password, achieving account takeover.
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 session cookie is a small piece of data a website gives your browser after you log in, so it knows who you are on later requests. Here, two different websites shared the same cookie and user database, so a cookie stolen from one site worked on the other. That let an attacker act as another user, including changing their password.
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.