As Luck Would Have It — tales of good fortune in bug bounty
Across three findings on an eCommerce site, the author saw other customers' names and email addresses appear in the cart page source, obtained other users' payment and billing data from an internal PayPal proxy when no auth cookie was sent, and found a service token in the DOM of a tracking page that gave full access to every user's orders and billing information. The token leak was the most severe, exposing data for over 100 million accounts.
We’ve all been there: 8 hour sesh trying to bypass a WAF so your fancy XSS payload can go through or perhaps another all nighter trying to fuzz hosts with a 5 million line wordlist and getting 0 responses
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the internal proxy generated a broadly privileged service token when the main auth cookie was absent, and that token was also exposed in the front-end cart configuration on an unauthenticated tracking page.
Impact
The leaked token gave full access to the orders and billing information of every user on the site, reportedly over 100 million accounts; the earlier proxy issue exposed roughly 100 accounts and was rated high.
What the attacker needed
No account needed; victim data already stored on site; attacker loads a tracking page and refreshes
How it was found
- Open a tracking URL for an arbitrary order while not logged in; it redirects to login.
- Refresh the tracking page once.
- Observe a token in the cart configuration in the page source.
- Use that token against the internal eCommerce host to read any user's orders and billing information.
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 write-up has not been written yet. The Original tab links to the source.
A website sometimes builds requests to internal services on your behalf. If those internal services trust a token or accept requests without a proper login check, anyone who gets hold of that token, or simply leaves the login cookie out, can read other people's data. Here the site leaked a powerful internal token into a page anyone could load, and an internal payment service also handed out other customers' details when no login cookie was present.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.