Vulnerability GHSA-44r8-3p76-84mw

Medium Risk
MEDIUM RISK
CVSS Score: 5.9
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
5 hours ago
November 09, 2026 at 10:20 PM UTC
FileGator: Missing authorization in POST /upload allows cross-user read and deletion of temporary files
v7.0.0-RC1 and v7.0.0-RC2 and v7.0.0-RC3 and v7.0.0 and v7.0.1 and v7.1.0 and v7.1.1 and v7.1.2 and v7.1.3 and v7.1.4 and v7.1.5 and v7.1.6 and v7.2.0 and v7.2.1 and v7.3.0 and v7.3.1 and v7.3.2 and v7.3.3 and v7.3.4 and v7.3.5 and v7.4.0 and v7.4.1 and v7.4.2 and v7.4.3 and v7.4.4 and v7.4.5 and v7.4.6 and v7.4.7 and v7.5.0 and v7.5.1 and v7.5.2 and v7.5.3 and v7.6.0 and v7.7.0 and v7.7.1 and v7.7.2 and v7.8.0 and v7.8.1 and v7.8.2 and v7.8.3 and v7.8.4 and v7.8.5 and v7.8.6 and v7.8.7 and v7.9.0 and v7.9.1 and v7.9.2 and v7.9.3 and v7.10.0 and v7.10.1 and v7.11.0 and v7.11.1 and v7.12.0 and v7.13.0 and v7.13.1 and v7.13.2 and v7.13.3 and v7.13.4 and v7.13.5 and v7.14.0 and v7.14.1 and v7.14.2 and v7.14.3 and v7.14.4
v7.0.0-RC1 and v7.0.0-RC2 and v7.0.0-RC3 and v7.0.0 and v7.0.1 and v7.1.0 and v7.1.1 and v7.1.2 and v7.1.3 and v7.1.4 and v7.1.5 and v7.1.6 and v7.2.0 and v7.2.1 and v7.3.0 and v7.3.1 and v7.3.2 and v7.3.3 and v7.3.4 and v7.3.5 and v7.4.0 and v7.4.1 and v7.4.2 and v7.4.3 and v7.4.4 and v7.4.5 and v7.4.6 and v7.4.7 and v7.5.0 and v7.5.1 and v7.5.2 and v7.5.3 and v7.6.0 and v7.7.0 and v7.7.1 and v7.7.2 and v7.8.0 and v7.8.1 and v7.8.2 and v7.8.3 and v7.8.4 and v7.8.5 and v7.8.6 and v7.8.7 and v7.9.0 and v7.9.1 and v7.9.2 and v7.9.3 and v7.10.0 and v7.10.1 and v7.11.0 and v7.11.1 and v7.12.0 and v7.13.0 and v7.13.1 and v7.13.2 and v7.13.3 and v7.13.4 and v7.13.5 and v7.14.0 and v7.14.1 and v7.14.2 and v7.14.3 and v7.14.4

Summary

FileGator: Missing authorization in POST /upload allows cross-user read and deletion of temporary files

Details

Summary

POST /upload uses the request-supplied resumableFilename directly as a key into the shared temporary directory, without the character filter it applies to resumableIdentifier and without namespacing it per user. A valid user holding the upload permission can read any file in that directory into their own home directory, append to it, and delete it.

This reproduces the cross-user batch-archive disclosure of GHSA-f74m-x83r-c4v4 through a different route — it still works with the fix for that advisory (PR #597) applied — and additionally allows deleting the login rate-limit lockfile.

Reported with explicit preconditions and bounded impact, as before: the primitive is confined to the temporary directory, not the whole filesystem.

Details

  • backend/Controllers/UploadController.php:61 — $file_name = $request->input('resumableFilename', 'file') is not passed through the preg_replace('/[^0-9a-zA-Z_]/', '', ...) that line 66 applies to resumableIdentifier.
  • Line 88 builds $prefix namespaced by the sanitized username, but $file_name reaches the temporary storage at lines 118, 121 and 125 without that prefix.
  • Line 115 — if ($chunks_size >= $total_size) is entered whenever resumableTotalSize is 0.
  • Lines 116-119 — the assembly loop for ($i = 1; $i <= $total_chunks; ++$i) does not execute when resumableTotalChunks is 0, so nothing is written to $file_name.
  • Line 121 — readStream($file_name) therefore reads the pre-existing temporary file of that exact name.
  • Line 122 — its contents are stored into the requester's own home directory.
  • Line 125 — remove($file_name) deletes it.

Path traversal outside the temporary directory is prevented by Tmpfs::sanitizeFilename(), so the primitive is bounded to that directory — but every user's transient objects share it.

PoC

Preconditions: a multi-user deployment with distinct per-user homedirs. The attacker is a valid low-privileged user holding upload (a first-class permission in the admin UI, and present in the shipped users.json.blank admin set).

  1. Victim creates a batch archive via POST /batchdownload; the JSON response returns the archive id.
  2. Attacker sends one POST /upload with resumableFilename=<victim's id>, resumableTotalChunks=0, resumableTotalSize=0, resumableRelativePath=/, and any small valid file part.
  3. Response is {"data":"Stored"}. The victim's archive is now byte-identical in the attacker's home directory, retrievable through the ordinary GET /download. The victim's temporary archive has been deleted.

Verified end to end with a PHPUnit test against current master; the archive contents matched byte for byte. Test file available on request.

Impact

Missing authorization (CWE-862) on temporary storage objects.

  • Cross-user disclosure of any transient object whose name the attacker can learn or predict. This includes batch archives — so GHSA-f74m-x83r-c4v4's impact remains reachable even with its fix applied — and the plaintext per-file copies that ZipArchiver::addFileFromStorage() writes while an archive is being built (those still use uniqid(), which is timestamp-derived).
  • Arbitrary delete within the temporary directory. AuthController::login() stores the login rate-limit counter as md5($ip).'.lock' in that same directory (backend/Controllers/AuthController.php:36, checked at line 44, written at line 58). An attacker can compute their own lockfile name and delete it, defeating the lockout.
  • Arbitrary append: with resumableTotalChunks >= 1, line 118 write($file_name, ..., true) appends attacker-controlled bytes to an arbitrary existing temporary file.

Remediation

Do not use the request-supplied filename as a storage key. Namespace the assembly file per user — for example reuse the existing $prefix — and carry the display filename separately for the storage->store() call.

Note that simply applying the [^0-9a-zA-Z_] filter to resumableFilename would corrupt legitimate uploads (sample.txt becomes sampletxt), because $final['filename'] is what becomes the stored name. The fix needs the namespacing, not just the filter.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

Medium Risk
5 hours ago
FileGator: Missing authorization in GET /batchdownload allows cross-user retrieval of another user's archive
v7.0.0-RC1 and v7.0.0-RC2 and v7.0.0-RC3 and v7.0.0 and v7.0.1 and v7.1.0 and v7.1.1 and v7.1.2 and v7.1.3 and v7.1.4 and v7.1.5 and v7.1.6 and v7.2.0 and v7.2.1 and v7.3.0 and v7.3.1 and v7.3.2 and v7.3.3 and v7.3.4 and v7.3.5 and v7.4.0 and v7.4.1 and v7.4.2 and v7.4.3 and v7.4.4 and v7.4.5 and v7.4.6 and v7.4.7 and v7.5.0 and v7.5.1 and v7.5.2 and v7.5.3 and v7.6.0 and v7.7.0 and v7.7.1 and v7.7.2 and v7.8.0 and v7.8.1 and v7.8.2 and v7.8.3 and v7.8.4 and v7.8.5 and v7.8.6 and v7.8.7 and v7.9.0 and v7.9.1 and v7.9.2 and v7.9.3 and v7.10.0 and v7.10.1 and v7.11.0 and v7.11.1 and v7.12.0 and v7.13.0 and v7.13.1 and v7.13.2 and v7.13.3 and v7.13.4 and v7.13.5 and v7.14.0 and v7.14.1 and v7.14.2 and v7.14.3 and v7.14.4 GHSA-f74m-x83r-c4v4
v7.0.0-RC1 and v7.0.0-RC2 and v7.0.0-RC3 and v7.0.0 and v7.0.1 and v7.1.0 and v7.1.1 and v7.1.2 and v7.1.3 and v7.1.4 and v7.1.5 and v7.1.6 and v7.2.0 and v7.2.1 and v7.3.0 and v7.3.1 and v7.3.2 and v7.3.3 and v7.3.4 and v7.3.5 and v7.4.0 and v7.4.1 and v7.4.2 and v7.4.3 and v7.4.4 and v7.4.5 and v7.4.6 and v7.4.7 and v7.5.0 and v7.5.1 and v7.5.2 and v7.5.3 and v7.6.0 and v7.7.0 and v7.7.1 and v7.7.2 and v7.8.0 and v7.8.1 and v7.8.2 and v7.8.3 and v7.8.4 and v7.8.5 and v7.8.6 and v7.8.7 and v7.9.0 and v7.9.1 and v7.9.2 and v7.9.3 and v7.10.0 and v7.10.1 and v7.11.0 and v7.11.1 and v7.12.0 and v7.13.0 and v7.13.1 and v7.13.2 and v7.13.3 and v7.13.4 and v7.13.5 and v7.14.0 and v7.14.1 and v7.14.2 and v7.14.3 and v7.14.4 GHSA-f74m-x83r-c4v4
Medium Risk
4 years ago
Path Traversal in FileGator
v7.0.0-RC1 and v7.0.0-RC2 and v7.0.0-RC3 and v7.0.0 and v7.0.1 and v7.1.0 and v7.1.1 and v7.1.2 and v7.1.3 and v7.1.4 and v7.1.5 and v7.1.6 and v7.2.0 and v7.2.1 and v7.3.0 and v7.3.1 and v7.3.2 and v7.3.3 and v7.3.4 and v7.3.5 and v7.4.0 and v7.4.1 and v7.4.2 and v7.4.3 and v7.4.4 and v7.4.5 and v7.4.6 and v7.4.7 and v7.5.0 and v7.5.1 and v7.5.2 and v7.5.3 and v7.6.0 and v7.7.0 and v7.7.1 and v7.7.2 GHSA-rrhw-54r8-545q
v7.0.0-RC1 and v7.0.0-RC2 and v7.0.0-RC3 and v7.0.0 and v7.0.1 and v7.1.0 and v7.1.1 and v7.1.2 and v7.1.3 and v7.1.4 and v7.1.5 and v7.1.6 and v7.2.0 and v7.2.1 and v7.3.0 and v7.3.1 and v7.3.2 and v7.3.3 and v7.3.4 and v7.3.5 and v7.4.0 and v7.4.1 and v7.4.2 and v7.4.3 and v7.4.4 and v7.4.5 and v7.4.6 and v7.4.7 and v7.5.0 and v7.5.1 and v7.5.2 and v7.5.3 and v7.6.0 and v7.7.0 and v7.7.1 and v7.7.2 GHSA-rrhw-54r8-545q
Medium Risk
4 years ago
Improper user session handling in filegator
v7.0.0-RC1 and v7.0.0-RC2 and v7.0.0-RC3 and v7.0.0 and v7.0.1 and v7.1.0 and v7.1.1 and v7.1.2 and v7.1.3 and v7.1.4 and v7.1.5 and v7.1.6 and v7.2.0 and v7.2.1 and v7.3.0 and v7.3.1 and v7.3.2 and v7.3.3 and v7.3.4 and v7.3.5 and v7.4.0 and v7.4.1 and v7.4.2 and v7.4.3 and v7.4.4 and v7.4.5 and v7.4.6 and v7.4.7 and v7.5.0 and v7.5.1 and v7.5.2 and v7.5.3 and v7.6.0 and v7.7.0 and v7.7.1 and v7.7.2 GHSA-47vg-483w-hp3m
v7.0.0-RC1 and v7.0.0-RC2 and v7.0.0-RC3 and v7.0.0 and v7.0.1 and v7.1.0 and v7.1.1 and v7.1.2 and v7.1.3 and v7.1.4 and v7.1.5 and v7.1.6 and v7.2.0 and v7.2.1 and v7.3.0 and v7.3.1 and v7.3.2 and v7.3.3 and v7.3.4 and v7.3.5 and v7.4.0 and v7.4.1 and v7.4.2 and v7.4.3 and v7.4.4 and v7.4.5 and v7.4.6 and v7.4.7 and v7.5.0 and v7.5.1 and v7.5.2 and v7.5.3 and v7.6.0 and v7.7.0 and v7.7.1 and v7.7.2 GHSA-47vg-483w-hp3m
View all vulnerabilities for these packages

Impacted packages

Timeline

Published
5 hours ago
November 09, 2026 at 10:20 PM UTC
Last Modified
5 hours ago
November 09, 2026 at 10:30 PM UTC