filebrowser/settings
Henrique Dias 8ddd3d1db9
fix(auth): isolate auto-provisioned proxy and hook users to their own home
Proxy- and hook-authenticated users were auto-provisioned by applying the
default scope (".") and passing it straight to MakeUserDir, which normalizes
"." to "/". With CreateUserDir enabled, every provisioned user therefore
received the server root as its scope instead of a per-user home directory,
letting one user read, overwrite and delete another user's files.

The signup handler already cleared the scope before deriving the home
directory. Centralize that logic into Settings.CreateUserHome (clear the
scope when CreateUserDir is on and no explicit scope was supplied, derive the
home dir, then reject a scope already owned by another user) and use it from
signup, proxy and hook auth so the three provisioning paths cannot diverge.

Refs GHSA-j7jh-37pf-mf8h, GHSA-j2fc-28fx-hc8q
2026-07-25 08:16:15 +02:00
..
branding.go feat: add a new setting that disables the display of the disk usage (#2136) 2023-02-15 23:30:48 +01:00
defaults.go feat: add "redirect after copy/move" user setting (#5662) 2026-01-10 10:27:54 +01:00
dir.go fix(auth): isolate auto-provisioned proxy and hook users to their own home 2026-07-25 08:16:15 +02:00
settings.go fix: restore symlink behavior as opt-in followExternalSymlinks 2026-06-23 13:19:51 +02:00
storage.go refactor: cleanup package names (#5605) 2025-12-06 10:52:11 +01:00
tus.go feat: integrate tus.io for resumable and chunked uploads (#2145) 2023-07-28 18:15:44 +02:00