[SECURITY] Prevent Path Traversal in website_handlers #15
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
geomind_code/my_fs#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The server allows mounting and serving content via
/website/:website_hash/*path(implemented insrc/server/website_handlers.rs).Risk: Without strict path normalization and checking, an attacker could provide a path containing
..to escape the intended flist root and read arbitrary files from the storage backend.Proposed Fix: Ensure all paths are normalized and verified to reside within the intended directory subtree before processing.