-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure when download path is symlink #188
Comments
I'm thinking this might be related to the 9aae768 commit, but I could be wrong. |
What location is the link pointing to? |
I can confirm this issue occurring with:
A path like Sending a file from Android to Ubuntu gets cancelled right away. |
The link was originally It appears that at some stage the application checks that the received files are kept within the configured download directory, but compares the path of the symlink against the path the symlink points to. |
Distribution
Mint 21.2
Package version
1.6.4+victoria
Frequency
Always
Bug description
Warpinator cannot accept incoming files if the download location is a symbolic link. ('Location for received files' within the app)
The exact error returned is:
Resolved path is not a valid child of the save folder: [symlink path]/file -> [real path]/file
This was working in some prior release (within the last few weeks I expect, given when I last used the tool.
Steps to reproduce
Expected behavior
The file should be downloaded successfully.
Additional information
I can see some argument as to whether following symbolic links would be dangerous, as it could allow an attack that leaks file contents out of the chosen download location.
In this case an exception should be made only for the Download directory itself, and not for any nested paths.
Alternatively if this is expected behaviour, there should be a warning or error provided when selecting a symbolic link as a download target.
The text was updated successfully, but these errors were encountered: