Rails update fixes security issue |
Wednesday, 06 April 2011 |
Rails 3.0.6, released today, contains an important security fix. If you can't upgrade there is also a security patch to fix the issue. Rails versions 3.0.x prior to 3.0.6 contain an XSS vulnerability which manifests itself via the In the event that upgrading Rails 3 isn't something you want to do there is also a security patch that has the same effect. If you don't want either to upgrade Rails or apply the patch then the advice from the Rails blog is to change calls to <%= sanitize(auto_link(params[:content])) %> If you trust the input, then this is the change to make: <%= raw(auto_link(params[:content])) %>
A list of other important changes is available on the Rails blog. Further reading:
|
Last Updated ( Wednesday, 06 April 2011 ) |