~/talk

Securing Your Rails App

Talkat Ruby on Ales 2011 · 2011-03-24..03-25· [ruby, security]
slides:none on file

Live demos show concrete failures and fixes: a crafted filter string extracted encrypted admin passwords via SQL injection; unchecked form params mass assignment allowed setting admin=true; a raw notes field turned user note into cookie theft with XSS stealing session tokens; unsanitized finds permit voting on others’ events. Remedies are specific: use parameterized queries, model white‑lists, sanitize/whitelist markup not raw, check associations before find, rely on authenticity_token, and enable rack-ssl and secure cookies stop session sniffing.

AI-written summary · about

  1. 0:00Introduction
  2. 2:08Why Rails security matters
  3. 7:45Trust boundaries
  4. 8:05SQL injection
  5. 13:12Mass assignment risks
  6. 16:42Timing attacks and sessions
  7. 19:49Cross-site scripting
  8. 27:12Privilege escalation
  9. 31:05Cross-site request forgery explained
  10. 35:47Session spoofing and HTTPS
  11. 39:13Security best practices
  12. 41:25Q&A
~/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.