You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Path traversal vulnerability in static file serving #116
A potential path traversal vulnerability has been identified in the static file serving functionality that was moved from Serverpod to Relic. The current path calculation does not verify that the final filePath is within the expected directory, which could allow malicious clients to retrieve files above the intended web folder.
Security Concern
The path calculation logic constructs file paths without proper validation to ensure they remain within the designated serving directory. This could potentially allow directory traversal attacks using patterns like ../ to access files outside the intended scope.
Context
This issue was identified during code review of Serverpod PR #3625 where static file serving functionality was being refactored. The concern was raised by @tp and acknowledged by @nielsenko.
The path calculation should include proper validation to ensure that the resolved file path remains within the expected serving directory and cannot be used to access files outside the intended scope.
Activity