Hold on with upgrading to ruby 1.8.6-p230!!
Thursday, June 26th, 2008I started getting weird
(eval):2:in `protect_against_forgery?'
error from one of my Rails2-based system today. Mongrels were seg-faulting as well. The problem was quite unexpected as I have not touched the code for a while!
Turned out the problem was with the latest upgrade to ruby 1.8.6 patch level 230 (which is recommended by the Ruby on Rails site). And looks like this was the only system re-deployed (and restarted under new ruby version) since I have upgraded.
Now I'm back to p111, "vulnerable", but at least working version until problems sort themselves out.
Until they do, do not upgrade!
UPDATE:
Looks like the is a patch which addresses vulnerabilities which patch 230 addressed in turn. Check here for details. However, I'll just stick here for a couple of days for a real fix from the Ruby team.

