When “Export CSV” Becomes a Data Breach: A Case Study of a ID
Exported CSV files of users' trading history were stored on a public static domain with predictable URLs containing numeric user IDs, and could be downloaded without authentication. An attacker could enumerate user IDs to mass-harvest sensitive financial data such as trading pairs, leverage, and profit/loss.
Published on mokhansec.medium.com
While testing export functionality on a crypto trading platform, I discovered that users’ spot and futures order history CSV files were hosted on a public static domain and could be accessed without authentication.
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 export files were placed on a public static host with predictable, enumerable paths and no access control, so possession of the URL alone granted access.
Impact
Anyone could download other users' complete trading histories without authentication, and because IDs were sequential the issue could be exploited at scale to harvest millions of records; some files were also indexed by search engines.
What the attacker needed
No account needed; knowledge of the URL pattern; guessable numeric user IDs
The fix
The issue was fixed by the platform after responsible disclosure.
How it was found
- Observe the export URL pattern containing a numeric user ID.
- Change the numeric user ID in the path to another value.
- Download the resulting CSV file without authentication to view another user's trading history.
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.
When you export your trading history, the platform creates a file and stores it online. The problem was that anyone could guess the file's web address by changing a number in it, and no login was needed to download it. So a stranger could read other people's private financial records just by trying different numbers.
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.