-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Desktop app uses --no-sandbox #4073
Comments
I've assigned @dbkr as the most likely person to know why we've got the --no-sandbox flag on there right now :\ |
last sentence isn't very re-assuring :/ |
Ah, here we go. An explanation from the Electron docs: https://github.com/electron/electron/blob/master/docs/api/sandbox-option.md It seems that no sandbox is actually the default for Electron.
Please see the above link for the full details. It's thorough. |
I'm thinking the only solution is to enable the sandbox. This could be an undertaking because any code using require() will have to change to use IPC instead. But the added security here may truly be worth that effort. Otherwise, every bit of code that renders things from external sources must be sanitized so that untrusted JS cannot be run. I'm thinking along the lines of opengraph meta content that shows up when you share a link. This would be fine, except that all new code would need to be carefully analyzed from a security standpoint, and this may be even more of an undertaking in the long term than just enabling the sandbox. |
@alexgleason I think using no requires would require to change the hole riot-web and matrix-react-sdk project as it is not a only electron project |
Running Riot with --enable-sandbox works. |
Electron v5 defaults to sandboxing (causing #10509) |
This could be a security vulnerability if untrusted javascript manages to get run within the application.
Edit: to clarify, this is a Chromium flag and I was told by a Chromium developer that this could be a security concern when he saw the --no-sandbox flag on the process in htop.
The text was updated successfully, but these errors were encountered: