Commit Graph

1 Commits

Author SHA1 Message Date
yusing
892ee95c81 fix(api/file): prevent path traversal in file API
Use os.OpenRoot to restrict file access to the application root,
preventing directory traversal attacks through the file download endpoint.

Also add test to verify path traversal attempts are blocked.
2026-03-21 10:36:45 +08:00