~/talk

Securing Your Rails App

Talkat MountainWest RubyConf 2011 · 2011-03-17..03-18· [ruby-on-rails, security]
slides:none on file

Demonstrates concrete Rails 3 failures: string-interpolated queries allow SQL injection that can dump admin password hashes, unchecked params permit mass-assignment to flip admin flags, and using raw output enables XSS that exfiltrates session cookies (demo injects an <img> request to steal cookies). Shows fixes: use ? parameter binding, declare attr_accessible (whitelist) not attr_protected, use the sanitize helper or Markdown-to-HTML pipeline, rely on Rails’ CSRF authenticity token and serve cookies over SSL.

AI-written summary · about

  1. 0:00Rails security concerns
  2. 1:00Rails apps need security
  3. 3:35Rails security features
  4. 5:08Web architecture trust boundaries
  5. 6:16SQL injection in Rails
  6. 9:31SQL injection risks demo
  7. 10:56Mass assignment explained
  8. 13:27Prevent mass assignment
  9. 15:12XSS risks in Rails
  10. 16:45XSS attack vectors demo
  11. 17:51Session hijacking via cookies
  12. 18:54HTML sanitization in Rails
  13. 20:39Authorization flaws in queries
  14. 21:45Secure data access with associations
  15. 22:34Cross-site request forgery protection
  16. 24:22Authenticity tokens prevent CSRF
  17. 25:47Session spoofing and cookies
  18. 27:23Enforce HTTPS with HSTS
  19. 29:12Security patches importance
  20. 30:23Rails security best practices
~/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.