Summary
Foxel's file streaming and thumbnail endpoints lack authentication, potentially allowing unauthenticated users to read files. The risk arises when these endpoints are reachable and a requester can provide a VFS mount prefix and relative path to access content across mounts, bypassing PathRule permission grants.
Affected context
The issue concerns Foxel's /api/fs/stream and /api/fs/thumb endpoints. According to the vulnerability description, requests using a VFS mount prefix and relative path can retrieve full file contents or thumbnails across mounts, bypassing PathRule permission grants.
Exploit preconditions
- Attack surface: The
/api/fs/streamor/api/fs/thumbendpoint is reachable. - Required access: No authentication is required, according to the vulnerability description.
- Trigger point: A request to either endpoint that specifies a VFS mount prefix and relative path.
- Why exploitation is possible: The endpoints do not require authentication, and the described access path can bypass PathRule permission grants.
Why this happens
The underlying issue is a missing authentication check on file access endpoints. This maps to CWE-306: Missing Authentication for Critical Function: a sensitive operation is available without first verifying the requester's identity. The described bypass of PathRule grants also indicates that authorization rules need to be enforced consistently for each requested file.
Potential impact
- Unauthenticated users may retrieve full file contents.
- Unauthenticated users may access thumbnails.
- Sensitive information stored across VFS mounts could be disclosed.
General mitigation guidance
Defensive approaches generally ensure that sensitive file operations require authentication and that authorization is checked for every requested resource.
- Apply secure-by-default authentication to file-serving endpoints.
- Enforce per-file authorization and PathRule checks after resolving the requested mount and path.
- Treat mount prefixes and relative paths as untrusted input; validate and constrain them to authorized resources.
- Limit service and user privileges, and avoid exposing file-serving endpoints beyond their intended audience.
How teams detect issues like this
Review endpoint handlers and middleware for file access routes that can proceed without authentication or per-resource authorization. Static analysis and code review can look for streaming or thumbnail code paths that accept caller-controlled paths without applying access checks. Policy enforcement can require authentication and authorization checks for all sensitive file-serving routes; automated review tools may help identify inconsistent coverage.

