Unauthenticated access to private files on app.fizzy.do via Active Storage URLs leads to information disclosure
Files and previews uploaded to cards are served through Active Storage URLs that lack any authentication or authorisation check. Anyone who obtains such a URL, including unauthenticated visitors or other users, can open the private attachment directly.
- Triaged in 48 hours
- Fixed in 13 days
- Paid in 48 hours
- Disclosed after 3 months
Unauthenticated access to private files and previews via Active Storage URLs (IDOR)
Description
While testing the application at fizzy.do domain asset into https://app.fizzy.do/ subdomain file uploads, I noticed that files and file previews served through Active Storage can be accessed directly via their URLs, without any authentication or authorization checks. These URLs remain accessible to other users and even to unauthenticated visitors, which allows access to private attachments outside the intended application flow.
Steps to Reproduce
- Log in as User A
- Upload a file to a card
- View the uploaded file so the preview or download link is rendered
- Copy the Active Storage URL from the browser (e.g., image preview or download link)
- Open a new browser session without authentication (or log in as a different user)
- Paste the copied URL into the address bar
Impact
The file or preview is displayed successfully, even though the user is not authenticated or authorized to access the original resource.
The issue does not require guessing or brute-forcing URLs. The application exposes these URLs during normal usage (e.g., in HTML markup and browser requests). The same behavior was observed across multiple file types, including PDFs, images, text files, and HTML files.
Note: This appears to be a configuration or design issue rather than a problem with Rails itself, and fixing it would help ensure that private attachments are only accessible within the intended permission model.
Context
Fizzy is a Basecamp product, and the report concerns its web application at app.fizzy.do. The feature under examination is file upload: users attach files to cards, and the application serves those files and their previews through Rails Active Storage. Active Storage generates URLs for blobs and their variants, and those URLs are what the browser requests when a preview or download link is rendered.
The expectation for a private attachment is that the application's permission model governs access: only users who are authorised to see the card should be able to retrieve the file. The report shows that the Active Storage URLs themselves bypass that model entirely.
Setup
The test needs two things: an authenticated account that can upload a file to a card, and a second browser session that is either unauthenticated or logged in as a different user. No special tooling is described; the browser's address bar and the ability to copy a URL from the page are sufficient. The researcher tested several file types: PDFs, images, text files and HTML files.
Finding it
While testing file uploads on the app.fizzy.do subdomain, the researcher noticed that files and file previews served through Active Storage could be fetched directly by URL, with no authentication or authorisation check. The URLs are exposed during normal use, in HTML markup and in the browser's own requests, so no guessing or brute-forcing is involved. The same behaviour held across every file type tested.
What makes this look wrong is the mismatch between the two access paths. Inside the application, a file is reachable only through a card the viewer is permitted to see. The Active Storage URL, once known, is reachable by anyone. The URL works like a bearer capability: the application exposes it in page markup and browser requests, and the serving endpoint never checks who is asking.
Exploitation
Step 1: log in as User A
Authenticate to app.fizzy.do as the account that owns or can see the target card.
Step 2: upload a file to a card
Attach a file to a card through the normal upload flow. This creates the Active Storage blob and, for previewable types, its variant.
Step 3: view the uploaded file
Render the file in the application so that the preview or download link appears in the page. At this point the Active Storage URL is present in the HTML markup and in the requests the browser makes.
Step 4: copy the Active Storage URL
Take the URL from the browser, either the image preview link or the download link. The report gives no example URL, so the exact path shape is not documented here.
Step 5: open an unauthenticated session
Start a new browser session with no authentication, or log in as a different user who has no access to the card.
Step 6: request the copied URL
Paste the URL into the address bar and load it. The file or preview is displayed successfully, even though the requester is neither authenticated nor authorised for the original resource.
That is the whole exploit: possession of the URL is sufficient. There is no token to forge, no identifier to enumerate and no request to tamper with.
Root cause
The report attributes the behaviour to configuration or design rather than to a flaw in Rails itself. Active Storage serves blobs and variants from its own routes, and those routes do not consult the application's permission model; the application is responsible for deciding who may learn or use a blob URL. Here the URLs are exposed in markup and browser requests to anyone viewing the page, and the serving endpoint accepts them from anyone who presents them. The existing authorisation checks on cards therefore protect the card view but not the underlying file, because the file has a second, unguarded entry point. The report does not describe the specific configuration behind this, so the precise mechanism is likely a matter of how the storage service and its URL signing or access control are set up.
Impact
An attacker who obtains an Active Storage URL can read the file or preview without any account, or with an account that has no rights to the card. Because the URLs appear in normal page markup and requests, anyone who obtains one can retrieve the attachment. The researcher confirmed the behaviour for PDFs, images, text files and HTML files, so the exposure is not limited to one content type. The report rates this as an information disclosure of private attachments outside the intended permission model. It does not require guessing or brute-forcing, which lowers the bar for anyone who already has a URL. The report does not quantify how many files or users are affected.
Fix
The report frames the fix as ensuring that private attachments are only accessible within the intended permission model, and notes that the problem is one of configuration or design rather than of Rails. In practice that means the file-serving path must enforce the same authorisation as the card: either serve blobs through an application route that checks the current user's access to the owning record, or configure the storage backend so that URLs are not usable by unauthenticated parties. The report does not state which change was made.
Variants to test
- Other Active Storage deployments. On any Rails application using Active Storage, upload a file, copy the blob or variant URL, and request it from a private window. A positive result is the file rendering without a session.
- Signed versus unsigned URLs. Check whether the URL carries a signature or expiry parameter. If it does not, or if the same URL keeps working after logout and across users, the access control is missing rather than merely long-lived.
- Redirects and variants. Request the variant URL (preview, resize) as well as the original blob URL. A positive result is either one serving content to an unauthenticated client.
- Leakage channels. Look for blob URLs in page markup, API responses, emails, exported data and referrer headers. A positive result is a URL reaching a party who should not have it.
- Content types. Repeat with PDFs, images, text and HTML, as the researcher did. A positive result is consistent exposure across types rather than a single misconfigured upload.
Hunting notes
This class of bug hides wherever an application stores user files in an object store or a framework-provided file service and then links to them directly. The signal during recon is a URL in the page source that points at a storage host or a framework route rather than at an application controller, especially one with no obvious authorisation parameter. Copy such a URL into a private window; if it loads, you have the finding. The researcher showed that the URL is exposed in normal usage, that no guessing is needed, and that the behaviour is consistent across several file types. That combination, private data, no authentication, and a realistic path to obtaining the URL, is what supports the report.
Difficulty: beginner. The technique is copying a URL into a private browser window, and the report requires no tooling beyond a browser and two sessions.
What happened, in plain words
Fizzy is a web application made by Basecamp, and it lives at app.fizzy.do. One of its features lets people attach files to cards, a bit like sticking a document onto a noticeboard. The application then shows those files, and small previews of them, in the browser.
The problem is that the link the browser uses to fetch a file works for anybody who has it. You do not need to be logged in. You do not need to be the person who uploaded the file. You do not even need an account. If you can get hold of the link, the file opens.
This kind of mistake is called an IDOR, short for Insecure Direct Object Reference. The everyday comparison is a hotel: your room key should only open your room, but here the door opens for anyone holding a copy of the key, and the hotel hands out copies freely. The link is the key, and the application never checks who is holding it.
The report describes this as an information disclosure of private attachments outside the intended permission model.
Context
Before the details, a few words about the pieces involved.
Fizzy is the product. The report concerns its web application at app.fizzy.do. A web application is simply a program you use through your browser, the same way you use a shop's website.
File upload is the feature under examination. Users attach files to cards. A card is Fizzy's unit of content, and attaching a file to it is like adding an attachment to an email.
Rails is a toolkit that programmers use to build web applications. Active Storage is a part of Rails that handles files: it stores uploaded files and hands out web addresses for them. In Rails vocabulary, an uploaded file is called a blob, and a variant is a processed copy of it, such as a smaller preview image.
Active Storage generates URLs for blobs and their variants. A URL is a web address, the thing you type into the address bar. When the page shows a preview or a download link, the browser is requesting one of these generated URLs behind the scenes.
The expectation for a private attachment is simple: only people allowed to see the card should be able to get the file. The application has a permission model, a set of rules about who may see what. The report shows that the Active Storage URLs skip those rules entirely.
Setup
The test needs two things:
- An account that can upload a file to a card. The report calls this account User A.
- A second browser session that is either not logged in at all, or logged in as a different user.
A browser session is just one browser window or tab with its own login state. Opening a private or incognito window gives you a fresh session with no login, which is why it is handy for this kind of test.
No special tools are described. The browser's address bar and the ability to copy a URL from the page are enough. The researcher tested several file types: PDFs, images, text files and HTML files. A PDF is a document format, an HTML file is a web page saved as a file, and the other two are self-explanatory.
Finding it
While testing file uploads on the app.fizzy.do subdomain, the researcher noticed that files and file previews served through Active Storage could be fetched directly by URL, with no authentication or authorisation check.
Authentication means proving who you are, usually by logging in. Authorisation means being allowed to do a particular thing, such as view a particular card. These are different questions: authentication asks "who are you?", authorisation asks "are you allowed?". Here the answer to both was effectively "we did not ask".
The URLs are exposed during normal use, in the page's HTML markup and in the browser's own requests. HTML markup is the code a web page is made of; when you view a page's source, you see it. So no guessing or brute-forcing is involved. Brute-forcing means trying many possibilities automatically until one works, like trying every combination on a padlock. Here nobody had to try anything: the application handed out the working link.
The same behaviour held across every file type tested.
What makes this look wrong is the mismatch between the two ways of reaching a file. Inside the application, a file is reachable only through a card the viewer is permitted to see. The Active Storage URL, once known, is reachable by anyone. The URL works like a bearer capability: whoever bears it, holds it, gets access, the way whoever holds a cinema ticket gets in, regardless of whose name is on it. The application exposes this ticket in page markup and browser requests, and the place that serves the file never checks who is asking.
Exploitation
Exploitation here means carrying out the attack step by step. The good news for a beginner is that every step happens in an ordinary browser.
Step 1: log in as User A
Authenticate to app.fizzy.do as the account that owns or can see the target card. This step exists so that you have a legitimate view of a private file, which is the starting point for showing that someone else can reach it too.
Step 2: upload a file to a card
Attach a file to a card through the normal upload flow. This creates the Active Storage blob and, for previewable types, its variant. In plain terms, the application now stores your file and prepares a preview for it, and in doing so it creates the web addresses that point at them.
Step 3: view the uploaded file
Render the file in the application so that the preview or download link appears in the page. At this point the Active Storage URL is present in the HTML markup and in the requests the browser makes. You are not doing anything unusual here; you are just looking at your own file, which is exactly when the application reveals the link.
Step 4: copy the Active Storage URL
Take the URL from the browser, either the image preview link or the download link. The report gives no example URL, so the exact shape of the address is not documented. In practice you would right-click the preview or the download link and copy the address, or find it in the page source.
Step 5: open an unauthenticated session
Start a new browser session with no authentication, or log in as a different user who has no access to the card. The private window is the simplest way: it has no login, so it plays the role of a stranger.
Step 6: request the copied URL
Paste the URL into the address bar and load it. The file or preview is displayed successfully, even though the requester is neither authenticated nor authorised for the original resource.
That is the whole exploit: possession of the URL is sufficient. There is no token to forge, no identifier to enumerate and no request to tamper with. A token here would be a secret string proving permission, and forging one would mean faking it. Enumerating would mean walking through identifiers one by one, like trying house numbers down a street. Tampering would mean altering a request to change what it does. None of that was needed.
Root cause
A root cause is the underlying reason the bug exists, as opposed to the symptom you see.
The report attributes the behaviour to configuration or design rather than to a flaw in Rails itself. Configuration means the settings chosen when the software is set up; design means how the pieces were put together on purpose. Either way, the fault lies in how this application was assembled, not in the toolkit it was built with.
Active Storage serves blobs and variants from its own routes. A route is the part of a web application that answers a particular address, like a reception desk for a particular department. Those routes do not consult the application's permission model. The application is responsible for deciding who may learn or use a blob URL, and here the URLs are exposed in markup and browser requests to anyone viewing the page, while the serving endpoint accepts them from anyone who presents them. An endpoint is the address and code that respond to a request.
The existing authorisation checks on cards therefore protect the card view but not the underlying file, because the file has a second, unguarded entry point. Picture a building with a guarded front door and an unlocked side door that leads to the same room: checking who enters the front door does not help if anyone can walk in the side.
The report does not describe the specific configuration behind this, so the precise mechanism is likely a matter of how the storage service and its URL signing or access control are set up. URL signing means adding a cryptographic stamp to a URL so the server can tell it was issued by the application and has not been altered.
Impact
Impact means the harm that follows if someone abuses the bug.
An attacker who obtains an Active Storage URL can read the file or preview without any account, or with an account that has no rights to the card. Because the URLs appear in normal page markup and requests, anyone who obtains one can retrieve the attachment. A referrer is information the browser sends about the page you came from; a cache is a store of previously fetched content kept to speed things up. Both can carry a URL further than intended.
The researcher confirmed the behaviour for PDFs, images, text files and HTML files, so the exposure is not limited to one content type. The report rates this as an information disclosure of private attachments outside the intended permission model. Information disclosure simply means private information becoming readable by the wrong people.
It does not require guessing or brute-forcing, which lowers the bar for anyone who already has a URL. The report does not quantify how many files or users are affected.
Fix
The report frames the fix as ensuring that private attachments are only accessible within the intended permission model, and notes that the problem is one of configuration or design rather than of Rails.
In practice that means the file-serving path must enforce the same authorisation as the card. There are two broad ways to do it: either serve blobs through an application route that checks the current user's access to the owning record, or configure the storage backend so that URLs are not usable by unauthenticated parties. The storage backend is the system that actually holds the files. The report does not state which change was made.
Variants to test
A variant here means a related version of the same test, useful for finding the same class of bug elsewhere.
- Other Active Storage deployments. On any Rails application using Active Storage, upload a file, copy the blob or variant URL, and request it from a private window. A positive result is the file rendering without a session.
- Signed versus unsigned URLs. Check whether the URL carries a signature or expiry parameter. If it does not, or if the same URL keeps working after logout and across users, the access control is missing rather than merely long-lived.
- Redirects and variants. Request the variant URL (preview, resize) as well as the original blob URL. A positive result is either one serving content to an unauthenticated client. A redirect is the server pointing your browser to a different address.
- Leakage channels. Look for blob URLs in page markup, API responses, emails, exported data and referrer headers. A positive result is a URL reaching a party who should not have it. An API is a way for programs to talk to each other, often returning data in a structured form rather than a web page.
- Content types. Repeat with PDFs, images, text and HTML, as the researcher did. A positive result is consistent exposure across types rather than a single misconfigured upload.
Hunting notes
This class of bug hides wherever an application stores user files in an object store or a framework-provided file service and then links to them directly. An object store is a service built for holding files. The signal during recon is a URL in the page source that points at a storage host or a framework route rather than at an application controller, especially one with no obvious authorisation parameter. Recon, short for reconnaissance, means looking around before attacking. A controller is the part of a web application that handles a request and decides what to do.
Copy such a URL into a private window; if it loads, you have the finding. The researcher showed that the URL is exposed in normal usage, that no guessing is needed, and that the behaviour is consistent across several file types. That combination, private data, no authentication, and a realistic path to obtaining the URL, is what supports the report.
Difficulty: beginner. The technique is copying a URL into a private browser window, and the report requires no tooling beyond a browser and two sessions.
Glossary
- Active Storage: the part of the Rails toolkit that stores uploaded files and generates web addresses for them.
- API: a way for programs to talk to each other, often returning data in a structured form rather than a web page.
- Authentication: proving who you are, usually by logging in.
- Authorisation: being allowed to do a particular thing, such as view a particular card.
- Bearer capability: something that grants access to whoever holds it, regardless of who they are.
- Blob: Rails' word for an uploaded file.
- Brute-forcing: trying many possibilities automatically until one works.
- Cache: a store of previously fetched content kept to speed things up.
- Configuration: the settings chosen when software is set up.
- Controller: the part of a web application that handles a request and decides what to do.
- Design: how the pieces of a system were put together on purpose.
- Endpoint: the address and code that respond to a request.
- Enumerating: walking through identifiers one by one, like trying house numbers down a street.
- HTML markup: the code a web page is made of.
- IDOR (Insecure Direct Object Reference): a bug where a link or identifier to a private object works for anyone who has it, because access is never checked.
- Impact: the harm that follows if someone abuses the bug.
- Information disclosure: private information becoming readable by the wrong people.
- Object store: a service built for holding files.
- Permission model: the set of rules about who may see or do what.
- Recon (reconnaissance): looking around a target before attacking.
- Redirect: the server pointing your browser to a different address.
- Referrer: information the browser sends about the page you came from.
- Rails: a toolkit programmers use to build web applications.
- Root cause: the underlying reason a bug exists, as opposed to the symptom you see.
- Route: the part of a web application that answers a particular address.
- Session: one browser window or tab with its own login state.
- Storage backend: the system that actually holds the files.
- Tampering: altering a request to change what it does.
- Token: a secret string that proves permission.
- URL: a web address, the thing you type into the address bar.
- URL signing: adding a cryptographic stamp to a URL so the server can tell it was issued by the application and has not been altered.
- Variant: a processed copy of an uploaded file, such as a smaller preview image; also used for a related version of a test.