This project is archived and is in readonly mode.
Changeset [66ce3843d32e9f2ac3b1da20067af53019bbb034] by Michael Koziarski
January 31st, 2011 @ 08:08 PM
Change the CSRF whitelisting to only apply to get requests
Unfortunately the previous method of browser detection and XHR whitelisting is unable to prevent requests issued from some Flash animations and Java applets. To ease the work required to include the CSRF token in ajax requests rails now supports providing the token in a custom http header:
X-CSRF-Token: ...
This fixes CVE-2011-0447
https://github.com/rails/rails/commit/66ce3843d32e9f2ac3b1da20067af...
Committed by Michael Koziarski
- M actionpack/lib/action_controller/metal/request_forgery_protection.rb
- M actionpack/lib/action_dispatch/http/request.rb
- M actionpack/test/controller/request_forgery_protection_test.rb
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>