Skip to content
IDOR Write-up Beginner

Single API Key from a Chrome Extension Led to 5.2 Million Exposed Customer Records

A Chrome extension contained a hardcoded bearer token that granted access to an API endpoint returning full order histories for any user ID. By cycling through user IDs, an attacker could enumerate millions of customer records without further authentication.

infosecwriteups.com

Published on infosecwriteups.com

During one of my routine explorations of public Chrome extensions, I stumbled upon a chain-owned extension belonging to a popular Asian coffee delivery platform. The extension, designed for quick order access, included preconfigured API endpoints and a hardcoded authorization key.

Erkan Kavas, on infosecwriteups.com

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 a hardcoded long-lived bearer token in the extension combined with an API endpoint that lacked per-user access controls, allowing enumeration of user IDs.

Impact

An attacker could access full order histories, including names, phone numbers, emails, delivery locations, and loyalty points, for over 5.2 million users.

What the attacker needed

Publicly available Chrome extension; no account needed

The fix

The exposed endpoints were taken offline, the hardcoded key was revoked, and sensitive APIs were restricted with proper authentication controls.

How it was found

  1. Inspect the public Chrome extension and find the hardcoded authorization header in its background script.
  2. Test the token against the platform's main API and confirm it works across endpoints without rate limiting.
  3. Send requests to the order history endpoint with different user_id values to retrieve other users' data.
  4. Enumerate user IDs to collect millions of unique records.

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 Chrome extension is a small program added to the Chrome browser. This one had a secret key written directly in its code, and that key let anyone call the coffee chain's API. The API did not check who was asking, so changing a number in the request returned other people's private order details.

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.

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.