Finding a Business Logic Flaw, When the Code Works Perfectly and
A crypto exchange stored generated tax and trading CSV reports on a public S3 bucket, protected only by an unguessable URL path with no authentication or expiry. Anyone who obtained such a link, for example from browser history or logs, could download another user's full financial history, and files shown as expired in the UI remained permanently accessible.
Published on medium.com
Most hunters go straight for the obvious surfaces — login forms, file uploads, API endpoints with parameters to fuzz. I was doing the same thing on a crypto exchange program when I clicked on something most people would ignore.
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 application generated report files into a public storage bucket and relied on an unguessable URL path as the only access control, with no authentication check or signed expiring link at the storage layer.
Impact
Anyone who obtained a report link could download complete financial transaction history and tax records without credentials, and files the UI marked as expired remained permanently accessible, so users' belief that their data had been deleted was false.
What the attacker needed
A report link obtained by any means; no account needed to open the link
The fix
The bucket should be restricted so files are not publicly readable, downloads should go through an authenticated endpoint or short-lived pre-signed URLs, and expiry shown in the UI should actually delete or revoke the underlying file.
How it was found
- Generate a tax report from the reporting page.
- Download the report and inspect the request in an intercepting proxy.
- Observe that the download is a direct GET to a static storage domain with no authentication token or session cookie.
- Note that the URL contains a user ID, a folder ID and a UUID, with no signed expiry.
- Find that spot trading history reports use the same public directory structure.
- Observe that reports shown as expired in the UI remain accessible at their direct URL.
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 download a report from a website, the file often comes from a separate storage service rather than the main site. Here that storage service did not check who was asking; it only relied on the link being hard to guess. If that link leaks, for example through browser history or a shared screenshot, anyone can open it and see the person's financial records.
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.