~/talk

Rails' Insecure Defaults

Talkat RailsConf 2013 · 2013-04-29..05-02· [ruby-on-rails, security]
slides:none on file

Rails lists concrete insecure defaults and practical fixes: leaking exact Ruby/Rack versions in the Server header, binding dev servers to 0.0.0.0, SQL logs exposing filtered values, committing secret_token.rb to git, unsafe open redirects, link_to allowing javascript: URIs, pluck and other AR APIs accepting raw SQL fragments, and YAML deserialization risks. Each item includes an exploit consequence and a remediation — for example bind Rails to localhost and redact SQL-bound values or gitignore secret_token.rb and default to JSON serialization — with code-level options to opt into less safe behavior.

AI-written summary · about

  1. 0:00Start
  2. 0:52Insecure by default is insecure.
  3. 2:25Let's Talk About Insecure Defaults
  4. 3:09Verbose Server Header
  5. 6:38Avoid loading real data into development environments
  6. 7:03Logging SQL Values
  7. 9:39Versioned Secret Tokens
  8. 11:13Minimum: Git-ignore secret_token.rb in generated app skeleton
  9. 16:39Rails is not a SQLi silver bullet
  10. 23:29Thank You @brynary
~/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.