chromium: save location bypass and code execution #3968
Labels
needinfo
More information is needed from the issue author
old-version
Issues caused by using an old version of firejail
stale
Closed due to inactivity
Bug and expected behavior
When using a Firejailed Chromium (default profile) it's possible to bypass the save location restriction and save files to desktop, or any other location, and to execute whatever file has been downloaded without any prompts.
For it not to be possible to execute the file.
Reproduce
Steps to reproduce the behavior:
Environment
Additional context
If the default system handler for the downloaded file is a snap package, then the file will be executed using the next available, 'non-snap' program instead.
eg: My default video player is VLC (installed from snap) but when I try this with a video file, the video opens with MediaInfo instead.
Also, even though the file isn't saved, if Chromiums save menu is opened again, Chromium file manager shows the file as being on the desktop.
The file can also being executed by entering the file path in the address bar. eg: filename is "pic1.jpg" and default save location is 'Desktop' so entering file:///home/user/Desktop/pic1.jpg in the address bar again executes the file.
I'm not sure if Firejail can prevent this, as the file isn't actually saved, but it doesn't seem right that the file is executed or that an alternate program is found when the default handler is an apparently un-usable snap.
The text was updated successfully, but these errors were encountered: