Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7614

Show
Ignore:
Timestamp:
09/24/07 17:59:17 (1 year ago)
Author:
rick
Message:

port over some of the csrf_killer README docs

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/request_forgery_protection.rb

    r7612 r7614  
    2222      # the token doesn't match what was expected. And it will add a _token parameter to all forms that are automatically generated 
    2323      # by Rails. You can customize the error message given through public/422.html. 
     24      # 
     25      # Learn more about CSRF (Cross-Site Request Forgery) attacks: 
     26      # 
     27      # * http://isc.sans.org/diary.html?storyid=1750 
     28      # * http://en.wikipedia.org/wiki/Cross-site_request_forgery 
     29      # 
     30      # Keep in mind, this is NOT a silver-bullet, plug 'n' play, warm security blanket for your rails application.  There are a few guidelines you 
     31      # should follow: 
     32      #  
     33      # * Keep your GET requests safe and idempotent.  More reading material: 
     34      #   * http://www.xml.com/pub/a/2002/04/24/deviant.html 
     35      #   * http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.1 
     36      # * Make sure the session cookies that Rails creates are non-persistent.  Check in Firefox and look for "Expires: at end of session" 
    2437      # 
    2538      # Example: