~/talk

Sandboxing Ruby: The Good, the Bad, and the Fugly

Talkat RubyConf 2011 · 2011-09-29..10-01· [security, ruby]
slides:none on file

A team builds an online TryRuby/try-rails engine and ships it on Heroku, then finds sandboxing failures and hard-won fixes: a JRuby-based JRuby jail sandbox that isolates namespaces, integrates FakeFS, and enforces per-eval timeouts; a parser-based RubyCop static analyzer (Ripper) that blacklists dangerous calls; a public SandboxBreaker3000 for live attacks. The system handles 1.3 million submissions so far, exposes XSS, resource-exhaustion and thread-kill weaknesses, and shows one exploit is enough to break isolation even when many mitigations exist.

AI-written summary · about

  1. 0:00Introduction to sandboxing
  2. 1:21The Rails for Zombies story
  3. 4:05Identifying security needs
  4. 6:40Defining sandboxing criteria
  5. 9:06The 'Safe' flag and threading
  6. 13:43Semantic analysis with RubyCop
  7. 17:48Implementing JRuby isolation
  8. 22:11Live sandbox competition
  9. 33:23Conclusion and future outlook
~/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.