-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Enable access to 'dangerous' files #3840
Comments
Wonder why they don't consider shell scripts dangerous. return false; Problem solved. |
Any update on this? I send files with these extensions to work colleagues. I currently have to rename the files to not have those extensions, then they have to rename them back. This isn't really a secure way of stopping malware from being sent. Maybe add an option to be able to disable this? Either globally or per user. |
They've made it clear that they think they know better than their users, much like how Microsoft and Google and Apple dumb things down so much that there is no more control over software, enabling them to decide things for you. I simply run a shell script that patches the return value for the function that checks file extensions. |
This is not a feature, this is a bug. |
Bug Description
This is related to #2832, but more general.
It is not possible to save files (“attachments”) to the file system using Signal-Desktop if the file name ends in certain character strings. This is the case if the file name matches the regular expression in
ts/util/isFileDangerous.ts
:Signal-Desktop/ts/util/isFileDangerous.ts
Lines 2 to 6 in 6b3328c
The code that aborts the file download is
Signal-Desktop/js/views/conversation_view.js
Lines 1916 to 1925 in 6b3328c
This applies analogously for sending files using Signal-Desktop:
Signal-Desktop/js/views/conversation_view.js
Lines 1174 to 1177 in 6b3328c
Steps to Reproduce
Signal-Desktop/ts/util/isFileDangerous.ts
Line 2 in 6b3328c
Actual Result:
The message
is displayed.
Expected Result:
The user is prompted for a location to save the file to.
If there are concerns that some file names could have special meanings on some systems (e.g. resulting in code execution) and the developers feel that it is necessary to prevent creating files with these names, it would be preferable if the user could at least be prompted to choose a different name (instead of making it impossible to access the file altogether).
The response #2832 (comment)
is not applicable, because this also affects files that have already been received by Signal-Desktop, but are made impossible to actually access by the user. Resending the file with a different name may not always be possible (e.g. no network, large files, etc.).
Platform Info
Signal Version: v1.29.3
Operating System: Linux (Ubuntu)
Linked Device Version: v4.52.4
The text was updated successfully, but these errors were encountered: