Jul 31, 2026·6 min read·75 visits
Authenticated path traversal in FileBrowser Quantum subtitle handler allows reading arbitrary system files via unvalidated query parameters.
FileBrowser Quantum (a fork of Filebrowser) prior to version 1.4.3-beta is vulnerable to multiple directory traversal flaws in its subtitle handler endpoint (`GET /api/media/subtitles`). This allows authenticated users with standard access to read arbitrary text files on the host system.
FileBrowser Quantum is a web-based file management application. It allows users to manage local directories, stream media, and modify system files through a web interface. The application exposes several API endpoints to handle media content. One such endpoint is GET /api/media/subtitles, handled by the subtitlesHandler function in backend/http/media.go.
This endpoint is designed to allow users to retrieve sidecar subtitles (such as SRT or VTT files) for video streams. It processes user-supplied query parameters to identify the video file and fetch the associated subtitle. However, the handler does not perform adequate input validation on these query parameters.
This lack of validation introduces a directory traversal vulnerability classified under CWE-22. Any authenticated user can exploit this vulnerability to read arbitrary text files on the host operating system. The scope of the vulnerability extends beyond the application root because the underlying file-reading mechanisms run with the privileges of the FileBrowser Quantum process.
The root cause lies in the logical flow of the subtitlesHandler endpoint. The endpoint reads four parameters: path, source, name, and embedded. The source parameter dictates the user scope under which the directory queries must run. However, the application fails to confine the path operations to this scope when resolving the inputs.
There are two independent path traversal vectors in the vulnerable handler. The first vector is via the path parameter. The application fetches the path string and passes it directly to the indexing engine via idx.GetRealPath(userscope, path). The indexing engine fails to sanitize this parameter using safe path-handling primitives, allowing directory traversal sequences like .. to resolve outside the defined user scope directory.
The second vector exists in the handling of the name parameter. Even if the path parameter points to a valid file inside the scope, the application resolves its parent directory and appends the name parameter using Go's standard filepath.Join(parentDir, name). While filepath.Join cleans the final string, it does not prevent traversing above the parentDir if relative paths are provided in name. This allows an attacker to fetch any file by appending traversal strings to the name parameter.
To understand the technical mechanism, we must analyze the vulnerable implementation of the subtitlesHandler function in backend/http/media.go. The following code snippet demonstrates the unsafe retrieval and manipulation of query parameters:
// Vulnerable code in backend/http/media.go
path := r.URL.Query().Get("path")
source := r.URL.Query().Get("source")
name := r.URL.Query().Get("name")
userscope, err := d.user.GetScopeForSourceName(source)
// ...
idx := indexing.GetIndex(source)
// ...
realPath, _, err := idx.GetRealPath(userscope, path)
// ...
parentDir := filepath.Dir(realPath)
if !embedded {
// UNSAFE: name is concatenated without validation
content, err = utils.GetSubtitleSidecarContent(filepath.Join(parentDir, name))
}In this implementation, idx.GetRealPath returns an unsanitized absolute path based on user input. Following this, filepath.Join constructs the file path using the untrusted name parameter. There are no checks to ensure that the constructed path remains within the bounds of parentDir or the defined userscope storage root.
// Patched code in backend/http/media.go (Commit f3f4bbe8)
fileInfo, err := files.FileInfoFaster(utils.FileOptions{
FollowSymlinks: true,
Path: path,
Source: source,
Expand: true,
Content: false,
Metadata: true,
ExtractEmbeddedSubtitles: config.Integrations.Media.ExtractEmbeddedSubtitles,
// ...
}, store.Access, d.user, store.Share)
if !strings.HasPrefix(fileInfo.Type, "video") {
return http.StatusNotFound, fmt.Errorf("file is not a video")
}
track := findSubtitleTrack(fileInfo.Subtitles, name, embedded)
// ...
if !embedded {
// SECURE: filepath.Base strips directory traversal sequences from track.Name
subtitlePath := filepath.Join(filepath.Dir(fileInfo.RealPath), filepath.Base(track.Name))
content, err = utils.GetSubtitleSidecarContent(subtitlePath)
}The patched version introduces three key security enhancements. First, path resolution is delegated to files.FileInfoFaster, which uses the central, scope-aware file resolver. Second, the code validates that the target file is a video, preventing direct access to non-video configuration files. Third, it applies filepath.Base to the subtitle track name, which strips all directory traversal segments before joining it to the video's parent directory.
An attacker can exploit either path traversal vector using a standard web browser or command-line utility. The attacker must possess valid credentials to authenticate to the FileBrowser Quantum instance and obtain an active JSON Web Token (JWT) or session cookie.
In the first exploitation scenario, the attacker targets the path parameter directly. The attacker constructs an HTTP GET request to /api/media/subtitles and populates the path parameter with traversal sequences. For example, setting path=/../../../../etc/passwd allows the attacker to traverse to the root directory. Setting the name parameter to passwd matches the final path construction logic, prompting the server to read and return /etc/passwd:
GET /api/media/subtitles?source=default&path=/../../../../etc/passwd&name=passwd&embedded=false HTTP/1.1
Host: target-filebrowser.local
Authorization: Bearer <JWT_TOKEN>In the second exploitation scenario, the attacker leverages the name parameter traversal vulnerability. The attacker selects an existing, valid video file within their scoped directory to satisfy the initial path check. The attacker then implements the traversal sequences directly in the name parameter. The application resolves the valid video directory and appends the malicious name argument, resolving to the targeted file:
GET /api/media/subtitles?source=default&path=movies/clip.mp4&name=../../../../etc/passwd&embedded=false HTTP/1.1
Host: target-filebrowser.local
Authorization: Bearer <JWT_TOKEN>The impact of successful exploitation is critical. Although the vulnerability requires authentication, FileBrowser Quantum is frequently deployed in multi-tenant environments where standard users are intended to have restricted directory access. An attacker with a low-privileged account can read arbitrary system text files, effectively breaking tenant isolation.
By accessing arbitrary host files, an attacker can extract sensitive system information. This includes reading /etc/passwd to map user accounts, accessing application configuration files to retrieve database credentials, or reading private SSH keys from user home directories. Additionally, if the attacker retrieves the server's private JWT signing key, they can forge administrative session tokens and gain full control over the application.
The vulnerability is classified as CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N, yielding a base score of 7.7. The scope is marked as 'Changed' (S:C) because the traversal allows the attacker to read files directly from the host operating system, escaping the application's logical directory restrictions.
The primary remediation strategy is upgrading FileBrowser Quantum to version 1.4.3-beta or higher. The update introduces robust authorization logic, file-type checks, and path normalization to effectively neutralize traversal attacks. This version can be downloaded from the official repository release page.
If upgrading is not immediately feasible, system administrators should implement containerization or operating system-level process isolation. Running FileBrowser Quantum inside a minimal Docker container limits host file exposure. The application container should execute with non-root privileges and map only necessary data directories, preventing access to host files like /etc/passwd or ssh keys.
Administrators can detect exploitation attempts by monitoring application access logs for anomalous GET requests. Requests to /api/media/subtitles containing .. or %2f sequences in either the path or name query parameters are high-fidelity indicators of exploitation. Additionally, deployment of a web application firewall (WAF) or an intrusion detection system (IDS) can block incoming requests containing common traversal patterns.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
FileBrowser Quantum gtsteffaniak | < 1.4.3-beta | 1.4.3-beta |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-22 |
| Attack Vector | Network |
| CVSS Score | 7.7 |
| EPSS Score | 0.00307 |
| Impact | Arbitrary File Read |
| Exploit Status | poc |
| KEV Status | No |
The application uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize security-sensitive elements such as directory traversal sequences.
CVE-2026-109478 is a network-accessible Denial of Service (DoS) vulnerability in ASP.NET Core caused by inefficient algorithmic complexity (CWE-407) when parsing comma-separated HTTP request headers. Prior to the patch, the internal helper method ParsingHelpers.GetHeaderSplit repeatedly called StringValues.Concat inside a loop iterating over each comma-separated token. Because StringValues allocates a new array of size k + 1 and copies all existing elements upon each concatenation, processing N tokens incurs O(N^2) time and space complexity. An unauthenticated remote attacker can send HTTP requests with headers containing thousands of short, comma-separated values to exhaust CPU cycles and induce severe Garbage Collection (GC) pauses, rendering the web application unresponsive.
CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.
CVE-2026-114156 is an improper resolution of path equivalence vulnerability (CWE-41) in Microsoft ASP.NET Core affecting .NET 11.0 preview releases and Microsoft Visual Studio 2026. The vulnerability stems from a discrepancy between how path prefix validation helpers (such as PathString.StartsWithSegments) and downstream routing mechanisms handle alternate path separators and percent-encoded characters. An unauthenticated remote attacker can exploit this mismatch over the network to bypass path-based authorization middleware and access restricted endpoints.
CVE-2026-114157 is a high-severity local privilege escalation and security feature bypass vulnerability affecting ASP.NET Core on Microsoft Windows. The flaw resides in the Kestrel web server's Named Pipes transport layer (Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes) and stems from a race condition (CWE-362) during broken pipe error recovery. When an active connection throws an IOException during handshake acceptance, the connection listener previously disposed of the broken NamedPipeServerStream instance before acquiring a replacement stream from its internal pool. This sequence created a momentary window where zero server instances of the named pipe existed in the Windows Named Pipe File System (NPFS). A local, low-privileged attacker can exploit this timing window to create a named pipe with the identical name and a permissive Discretionary Access Control List (DACL), hijacking subsequent inter-process communications and escalating privileges across security boundaries.
CVE-2026-124194 is a forced authentication and spoofing vulnerability in Microsoft Office Outlook caused by a missing user interface warning before dereferencing remote network paths (CWE-356). By embedding an attacker-controlled Universal Naming Convention (UNC) path within MAPI message properties such as PidLidReminderFileParameter, an unauthenticated remote attacker can force a victim's system to initiate an outbound SMB or WebDAV connection upon opening or previewing a crafted message. This automatic authentication handshake leaks the user's NetNTLMv2 hash, enabling offline password cracking or real-time NTLM relay attacks. The vulnerability was exploited in the wild as a zero-day prior to its remediation in Microsoft's November 2026 Patch Tuesday updates and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
CVE-2026-114154 is a high-severity Denial of Service (DoS) and uncontrolled resource consumption vulnerability in the Microsoft.AspNetCore.Server.HttpSys component of ASP.NET Core. When processing an HTTP request that simultaneously contains a chunked Transfer-Encoding header, a Content-Length header, and an explicit X-Content-Length header, the server throws an unhandled ArgumentException during header normalization. In certain versions, subsequent exception handling attempts to dereference a disposed native request context, aborting error response dispatch and leaking unmanaged HTTP.sys request structures.