Re:From Markdown to remote code execution in Atom
by sigzero on Thursday November 23, 2017 @12:55PM
(#15766698)
"As long as you don't load untrusted code or content..."
Because end users are soooo good at that?
Re:From Markdown to remote code execution in Atom
by AgentME on Thursday November 23, 2017 @06:18PM
(#15768477)
They're referring to the application developer.
If the developer uses Electron only to open the application's own html files and doesn't render user-provided HTML anywhere, then there won't be any XSS vulnerabilities.
The way I'm using electron for my pet projects is only passing untrusted HTML to DOMParser and then sanitizing with strict whitelist of attributes/html elements. Only then will any HTML code get interpreted by the browser engine.
Feels somewhat safe, but I haven't read the bug list. :)
Image format decoding and HTTP/TLS/request processing layer bugs may be other source of issues in any case. But hopefully that runs in some restricted environment.