Details
Fix 2: Make auto-user-creation opt-in
Add a configuration flag auth.proxy.createUsers (default: false) so administrators must explicitly enable automatic account creation.
Fix 3: Documentation warning
Clearly document that when using proxy auth:
- FileBrowser MUST NOT be directly accessible from untrusted networks
- Bind to
127.0.0.1or use firewall rules to ensure only the reverse proxy can reach it - The reverse proxy MUST strip/overwrite the configured header from client requests
References
- Source file: https://github.com/filebrowser/filebrowser/blob/main/auth/proxy.go
- Login handler: https://github.com/filebrowser/filebrowser/blob/main/http/auth.go#L121-L137
- CWE-287: https://cwe.mitre.org/data/definitions/287.html
- CWE-290: https://cwe.mitre.org/data/definitions/290.html
- OWASP Authentication Cheat Sheet: https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html