Skip to content
IDOR Disclosed report Intermediate

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.

Kamil Onur Özkaleli Follow

Originally disclosed on HackerOne

Critical 9.0 View original
  • 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.

The original report as published on HackerOne, by ko2sec. 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 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

  1. Find an endpoint on the alternate site that exposes a PHPSESSID cookie value.
  2. Copy that PHPSESSID cookie value to card.starbucks.com.sg.
  3. 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.

More by Kamil Onur Özkaleli

View all

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

Insecure direct object reference (IDOR)

The lesson behind this report.

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.