File Browser: ScopedFs follows a dangling symlink on write, letting a scoped user create files outside their scope
filebrowser
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/filebrowser/filebrowser/v2 Go |
|
|
| github.com/filebrowser/filebrowser Go |
| No fix yet |
Original description
File Browser provides a web file managing interface. Prior to 2.63.16, ScopedFs validates the nearest existing ancestor of a dangling symlink as in scope and then follows the symlink during file creation, allowing an authenticated user with Create and Modify permissions to create attacker-controlled files outside the user's scope. This issue is fixed in version 2.63.16.