Vulnerability GHSA-f74m-x83r-c4v4

Medium Risk
MEDIUM RISK
CVSS Score: 5.4
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
6 hours ago
November 09, 2026 at 10:17 PM UTC
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
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 GET /batchdownload allows cross-user retrieval of another user's archive

Details

Summary

GET /batchdownload streams a batch ZIP to any requester who supplies its uniqid, without checking that the current user/session created it. In deployments where users have separate home directories, a valid low-privileged user who obtains an active archive id can download another user's batch archive, disclosing files the per-user boundary otherwise protects. Reported with explicit preconditions and bounded impact — not a universal "any user steals any file" issue.

Details

The archive id is generated with plain uniqid() and no ownership metadata is bound to it before streaming.

  • backend/Services/Archiver/Adapters/ZipArchiver.php:44 — createArchive() uses plain uniqid().
  • backend/Controllers/DownloadController.php:144-145 — batchDownloadStart() reads the tmpfs file by the request-supplied uniqid after only a charset preg_replace().
  • backend/Controllers/DownloadController.php:158 — the tmpfs archive is removed only after streaming.
  • backend/Controllers/routes.php:207-226 — both batch endpoints are exposed to normal roles with read, download, batchdownload.

No user id, session id, home directory, or creator check is applied before streaming. The code path is unchanged since commit 3f03a40 (2022-05-31) and is present in the latest release v7.14.3.

PoC

Preconditions: a multi-user deployment with distinct per-user homedirs (set per-user in users.json, or private_repos => true on the WordPress/LDAP adapter). The shipped sample config (admin/guest both at /, guest with no perms) does not create this boundary on its own. Attacker is a valid user with read, download, batchdownload.

  1. User John (homedir /john) creates secret.txt, signs in, and creates a batch archive via POST /batchdownload. The JSON response returns the archive uniqid.
  2. User Jane (homedir /jane, with batchdownload) signs in normally.
  3. Jane's direct GET /download of /secret.txt returns 302 — the normal home-directory boundary blocks the file.
  4. Jane sends GET /batchdownload?uniqid=<John's id> and receives a valid ZIP containing secret.txt with John's content.

A PHPUnit proof with two real sessions reproduces this end to end (OK, 3 tests / 29 assertions), plus a lifecycle test (OK, 2 tests / 9 assertions). Full test files, run logs, and a real Apache access-log replay demo are available on request.

Lifetime / acquisition: a normal completed download removes the archive at the end of streaming, limiting the window. An aborted/failed download leaves the archive in tmpfs (cleanup never reached). The frontend issues the download as a top-level navigation (window.open('.../batchdownload&uniqid='+ret.uniqid, '_blank')), so the id appears in standard web access logs. That access-log path only adds meaningful impact when log visibility is decoupled from host filesystem access (e.g. a log-aggregation/shared-hosting/downstream-sink reader) and the archive is still alive; if the reader is ops/root on the same host they can already read the storage tree directly. The uniqid() token is timestamp-derived (1,000,000-value space per known second) — included to justify a CSPRNG, not presented as a practical universal brute force.

Impact

Missing authorization (CWE-862) on a temporary download object, leading to cross-user file disclosure across the per-user home-directory boundary in configured multi-user deployments. Secondary effect: a successful replay deletes the victim's pending archive (the GET removes the tmpfs file after streaming), denying the victim their own download if not yet consumed.

Remediation: generate ids with bin2hex(random_bytes(32)); store creator user/session + home dir + expiry per archive id; verify the requester matches before streaming and return 403/404 on mismatch or unknown/expired id; delete metadata with the tmpfs file.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

Medium Risk
6 hours ago
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 GHSA-44r8-3p76-84mw
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-44r8-3p76-84mw
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
6 hours ago
November 09, 2026 at 10:17 PM UTC
Last Modified
5 hours ago
November 09, 2026 at 10:30 PM UTC