Skip to content
Access control Disclosed report Beginner

Direct URL access to completed reports

CSV transaction reports stored on a public S3 bucket were not restricted to authenticated users, so anyone with the direct URL could download them. An attacker who obtained such a URL, for example from browser history, could access another user's report.

roshanpty Follow

Originally disclosed on HackerOne

Bounty$200 View original
  • Triaged in 2 days
  • Fixed in 17 days
  • Paid in 17 days
  • Disclosed after 55 days

Access to non-HTML contents such as CSV report is not restricted to authenticated users.

Anyone would be able to access a CSV report by giving the direct URL and downloading it. The URL could be obtained from browser history. The following URL is an example.

https://coinbase-tmp.s3.amazonaws.com/f83af6cee5520796d9876723e59225b772abfd89fff6f5d8fee3069f6e4738b07481896312c41d8bf43413a57b5b19a907fb3729f886c336caac8c49d1d302ae/Coinbase-5692a0b23bda9c599f00033e-Transactions-Report-2016-01-10-21%3A31%3A51.csv

The original report as published on HackerOne, by roshanpty. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is Coinbase, and the feature involved is the export of account data as a CSV report. The researcher found that non-HTML content such as a CSV report was not restricted to authenticated users: anyone holding the direct URL could download the file without logging in.

The report gives one example URL, which points at an S3 bucket rather than at the application itself:

HTTP
https://coinbase-tmp.s3.amazonaws.com/[redacted]/Coinbase-5692a0b23bda9c599f00033e-Transactions-Report-2016-01-10-21%3A31%3A51.csv

The URL points at an S3 bucket and ends in a CSV file name that includes a Coinbase identifier, the report type and a timestamp. The researcher notes that such a URL could be obtained from browser history.

The report does not describe the request that generated the export, the response headers returned by the bucket, or any test of whether the file could be listed or guessed. The weakness is recorded as improper authentication. The report does not describe a fix.

Root cause

The example URL points at an S3 bucket, and the file was downloadable without authentication. The file was not protected by an authentication check: anyone with the direct URL could download it.

Impact

The impact is that anyone with the direct URL can download the CSV report without being authenticated. The report's own hedge is the delivery vector, browser history. The report mentions browser history as a way the URL could be obtained.

How this kind of bug works

Exports are often produced asynchronously: the application renders a file and stores it somewhere the web tier can serve it later, commonly an object store or a static file directory. The authorisation check usually lives in the application route that starts the export, not in the storage layer. If the stored object is world-readable, or if the download route looks up the file by name without checking who is asking, the check is bypassed entirely.

Two properties make this worse. First, the URL is a bearer capability: whoever holds it is treated as entitled to the file, so any leak of the link (history, referrer headers, chat, logs, shared screenshots) is a leak of the data. Second, non-HTML responses are easy to overlook in testing, because automated scanners and manual testers concentrate on pages that render in a browser. A CSV, PDF or ZIP served with a content type the browser downloads rather than displays often sits outside the tested surface.

Defences in principle: authorise every download against the requesting identity, use short-lived signed URLs, and keep storage private by default.

How to test for it

  1. Identify every feature that produces a file: statements, transaction histories, invoices, activity logs, audit exports, backups. Trigger an export while authenticated and capture the resulting URL.
  2. Note whether the URL points at the application or at a storage host, and whether it contains a signature, an expiry parameter, a token, or just a path.
  3. Replay the download in a private browsing window with no session, and again with a second account's session. A response containing the file in either case is the finding.
  4. If the URL carries a signature or expiry, check whether the signature is actually validated: alter a character in the path, drop the signature parameters, or extend the expiry, and see whether the object is still served.
  5. Check whether the storage location permits listing, and whether object names are predictable enough to enumerate.

A positive result is a full file body returned to an unauthenticated client, ideally containing data that belongs to the exporting account. Common false positives are a login page or an error page returned with HTTP 200, a cached public file that contains no user data, and a signed URL that is still within its validity window, which is expected behaviour rather than a bug. Confirm the content, not just the status code.

How it is fixed

Where object storage is used, keep the bucket private and issue signed URLs with a short expiry, scoped to a single object. Avoid placing user data at stable, guessable paths, and disable public listing on the bucket. For sensitive exports, consider requiring re-authentication before the download.

Hunting notes

This class hides in asynchronous features: anything that says "your report is ready" or emails a link. Recon signals include storage hostnames in export links, long hex or UUID path segments, file names containing account identifiers and timestamps, and parameters that look like signatures or expiry times. Test the link from a logged-out browser and from a second account, and compare the bytes returned.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

Coinbase is a cryptocurrency exchange: a website where people buy, sell and hold digital money. Like any financial service, it lets you download a record of your own activity, for example a CSV file listing your transactions. CSV stands for comma-separated values: a plain text file where each line is a row of data with the values separated by commas. It opens in a spreadsheet and is the usual way to export account data.

The researcher found that non-HTML content such as a CSV report was not restricted to authenticated users. Anyone who had the direct web address of a report could open it and download the file, without being signed in to Coinbase at all. The report describes the file as accessible without authentication: the system did not confirm who was asking before handing over the data.

The report gives one example address, which points not at the Coinbase website but at Amazon S3, a storage service where files are kept and served over the web:

HTTP
https://coinbase-tmp.s3.amazonaws.com/[redacted]/Coinbase-5692a0b23bda9c599f00033e-Transactions-Report-2016-01-10-21%3A31%3A51.csv

Reading it piece by piece:

  • https://coinbase-tmp.s3.amazonaws.com is the storage host. The bucket, the container that holds the files, is called coinbase-tmp.
  • The long string of letters and digits after the first slash is part of the path to the file.
  • Coinbase-5692a0b23bda9c599f00033e is part of the file name and contains a Coinbase identifier.
  • Transactions-Report says what the file is.
  • 2016-01-10-21%3A31%3A51 is a timestamp. The %3A sequences are the colon character : written in URL encoding, the way browsers and servers represent special characters in an address.
  • .csv is the file extension.

The file was not protected by an authentication check: anyone with the direct address could download it. The researcher points out that such an address could be recovered from browser history. The report does not describe what was inside the CSV beyond it being a transactions report.

The report does not describe how the issue was fixed.

In general, this kind of bug

Many websites let you export data: bank statements, invoices, activity logs, backups. Producing the file can take time, so the site often builds it in the background and stores it somewhere a web server can hand it out later. That somewhere is frequently object storage such as S3, or simply a folder of files on a web server.

The important detail is where the login check sits. Usually the check is on the page or button that starts the export: you must be signed in to ask for your report. But the stored file itself may have no check at all. If the storage is open to the public, or if the download page looks up a file by its name without asking who is requesting it, then the check on the first step means nothing for the second.

A useful comparison is a hotel. Reception checks your key card when you ask for a parcel, but if the parcel is then left on a bench in the lobby with your name on it, anyone walking past can pick it up. The check happened, just not at the point where it mattered.

Two things make this class of bug worse. First, the address works like a bearer token: a token is a piece of data that proves entitlement simply by being presented, like a cloakroom ticket. Whoever holds the link is treated as entitled to the file, so any leak of the link is a leak of the data. Second, files that a browser downloads rather than displays, such as CSV, PDF or ZIP, are easy to miss during testing, because attention tends to go to pages that render on screen.

In principle, every download should be checked against the identity of the person asking. Storage should be private by default. Where links must be shared, they should be signed and short-lived, so the link stops working after a set time and only for the one file it was issued for.

How to test for it

  1. Find every feature that produces a file: statements, transaction histories, invoices, activity logs, audit exports, backups. Trigger an export while signed in and capture the resulting address.
  2. Look at the address. Does it point at the application or at a storage host? Does it contain a signature, an expiry time, a token, or just a path?
  3. Open the same address in a private browsing window, where you are not signed in, and again while signed in to a second account. If the file comes back in either case, you have found the issue.
  4. If the address carries a signature or expiry, check whether it is really validated: change a character in the path, remove the signature parameters, or extend the expiry, and see whether the file is still served.
  5. Check whether the storage location allows listing its contents, and whether file names are predictable enough to enumerate.

A real finding returns the full file to someone who is not signed in, ideally containing data that belongs to the exporting account. Watch for false positives: a login page or an error page returned with a success status code, a public file that contains no user data, or a signed link that is still within its validity window, which is expected behaviour rather than a bug. Confirm what the content is, not just that the request succeeded.

Glossary

  • Authentication: the process of proving who you are, usually by signing in with a username and password.
  • Authorisation: the separate decision about what a signed-in person is allowed to see or do.
  • Improper authentication: a weakness where the system does not properly confirm identity before granting access.
  • CSV: comma-separated values, a plain text file of rows and columns that opens in a spreadsheet.
  • S3: Amazon Simple Storage Service, a service for storing files and serving them over the web.
  • Bucket: a container in S3 that holds files.
  • Object: a single stored file in S3, identified by its key, which is its path-like name.
  • URL: the address of a resource on the web, typed into the browser bar.
  • URL encoding: writing special characters in an address in a safe form, such as %3A for a colon.
  • Browser history: the list a browser keeps of pages and addresses you have visited.
  • Bearer token: a piece of data that grants access simply by being presented, with no further proof of identity.
  • Security by obscurity: relying on something being hard to find, such as a random-looking address, instead of on a real access check.
  • Signed URL: an address carrying a cryptographic signature that the server checks, often with an expiry time, so it can be shared safely for a limited period.
  • Object listing: a storage feature that returns the names of all files in a bucket, which should normally be disabled for private data.
  • Enumeration: systematically trying many names or values to discover what exists.
  • False positive: a result that looks like a vulnerability but is not one.
  • Bounty: a payment made by a company to a researcher who reports a valid security issue.

More by roshanpty

View all

7 more disclosed reports, best first.

More from Coinbase

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.