FileGator: Missing authorization in POST /upload allows cross-user read and deletion of temporary files
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| filegatorfilegator | — | Not listed |
| composerfilegator/filegator |
< 7.15.0→ 7.15.0 |
7.15.0 |
| Packagistfilegator/filegator |
< 7.15.0→ 7.15.0 |
7.15.0 |
Original description The description as published by the source.
FileGator is a multi-user file manager. Prior to 7.15.0, POST /upload in backend/Controllers/UploadController.php uses the request-supplied resumableFilename as an unnamespaced key in shared temporary storage. In a multi-user deployment configured with distinct per-user home directories, a low-privileged user with upload permission can set resumableTotalChunks and resumableTotalSize to zero so the assembly loop writes no data, after which the handler reads a pre-existing temporary file with that name, stores it in the attacker's home directory, and removes it. The same filename path can append data when chunks are supplied, allowing disclosure, modification, or deletion of another user's transient object, including a pending archive or the login rate-limit lockfile, while Tmpfs path sanitization limits the primitive to the temporary directory. This issue is fixed in version 7.15.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com