~/talk

Electron - Build cross platform desktop XSS, it’s easier than you think

Talkat CODE BLUE 2016 · 2016-10-20..10-21· [security, nodejs]
links:none on file
slides:none on file

Electron apps let a single DOM XSS turn into full arbitrary code execution because Chromium plus Node gives renderers OS access; demo shows an injected image onerror or script can spawn child_process.exec or read local files and exfiltrate them, even launch calc. CSP often fails (meta-refresh and file:// origins), webview and iframe rules add surprising attack paths. Concrete fixes: one DOM XSS -> arbitrary code execution, disable nodeIntegration, use iframe sandbox, preload to expose limited APIs and validate/block file: URLs and popups.

AI-written summary · about

  1. 0:00Cross-platform Electron development
  2. 2:55Electron app structure and startup
  3. 5:29Electron security importance
  4. 12:49XSS basics
  5. 18:04XSS impact in Electron
  6. 24:23Content Security Policy limits
  7. 26:31Disabling Node.js features
  8. 30:44Safe preload implementation
  9. 33:33Third-party ad risks
  10. 37:48Electron security summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.