Profile picture
yan @bcrypt
, 6 tweets, 3 min read Read on Twitter
Signal Desktop just pushed out a fix for a remote XSS vuln: github.com/signalapp/Sign…

demo:
a lot of @electronjs devs have the attitude that their app doesn't need sandboxing or keeping up-to-date with Chromium bc "it doesn't execute untrusted code". the problem is that falls apart as soon as you get XSS. github.com/signalapp/Sign…

(at least Signal has sandboxing)
"should i build this as a web app or use Electron?"
the difficulty gap between XSS and full RCE is much smaller in Electron compared to a browser like up-to-date Chrome, so plz make it a web app if u care about good things
here's a recent example of XSS -> system RCE in Electron: trustwave.com/Resources/Spid…

Electron has a flag that basically says "allow content to run system commands via Node" and it was possible for a context with that flag disabled to open a new context that had it enabled
at least 3 reasons why XSS -> RCE is easier in Electron vs Chrome:
1. often behind latest Chrome so old 0days will sometimes work (ex: blog.ethereum.org/2017/12/15/sec…)
2. no renderer sandboxing by default
3. privilege boundary b/w content with & without Node access is not well-enforced
the Electron team knows about these issues and have made some great progress lately. in the meantime, keep in mind that it was designed primarily for Atom, an app that doesn't load remote content.
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to yan
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member and get exclusive features!

Premium member ($3.00/month or $30.00/year)

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!