~/talk

Taking front-end security seriously

Talkat Web Directions Code 2014 · 2014-05-01..05-02· [security]
slides:none on file

Firefox OS is a web‑based phone UI so client‑side code runs with native‑level APIs; about 20 front‑end security bugs appear during development and roughly 19 trace back to misuse of innerHTML. Practical rules: avoid innerHTML, never pass strings to eval or setTimeout, use textContent or createElement/setAttribute. Use vetted sanitizers like DOMPurify or bleach JS for workers, enable Angular’s CSP mode or Knockout’s secure bindings, and enforce Content Security Policy to block inline scripts, eval and remote script injection.

AI-written summary · about

  1. 0:00Intro
  2. 1:40Web apps (client-side, HTML, JavaScript) are changing.
  3. 2:48CLIENT-SIDE == SRS BSNS
  4. 6:08Sources
  5. 9:03Execution Sinks
  6. 9:49HTML Element Sinks
  7. 10:36Location Sink
  8. 11:59Control Flow Sink
  9. 13:00Minimise Attack Surface
  10. 15:04Template Approach
  11. 17:24HTML Input
  12. 19:10Sanitizers
  13. 21:17Frameworks
  14. 22:30jQuery?
  15. 23:44KnockoutJS 3.0.0
  16. 25:06Angular 1.1.5
  17. 29:56CSP 101
  18. 30:48Firefox OS Apps CSP
  19. 33:21Handlebars + CSP
  20. 33:35Knockout + CSP ?
  21. 34:22Angular + CSP
~/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.