File Browser: Colliding username normalization gives two users the same home directory
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 is a file managing interface for uploading, deleting, previewing, renaming, and editing files within a specified directory. Prior to 2.63.17, File Browser builds new user scopes from usernames passed through cleanUsername() when Signup=true and CreateUserDir=true, but the many-to-one normalization can collapse usernames such as team/one, team one, and team-one to the same home directory without checking whether the resulting scope is already taken, allowing a second registrant to gain full read and write access to another user's files. This issue is fixed in version 2.63.17.