Earlier quoted context omitted.
If you've recently started a new Rails project (or are thinking about it), you should use strong_parameters right off the bat!
Why is strong_parameters not the only way? Rails is pretty opinionated in many other respects...
Multiple vulnerabilities in parameter parsing in Action Pack
121–130 of 294 posts
Re: Multiple vulnerabilities in parameter parsing in Action Pack
#122Earlier quoted context omitted.
Calling YAML::load on attacker-controlled content in a Ruby app of any complexity is very bad news. As Ben and 'judofyr said: this is remote code execution.
Is this because Yaml doesn't whitelist the classes for the objects that may be instantiated? They are allocated and then instance_variable_set'd so I'd be Very interested to learn how this poses a risk.
Re: Multiple vulnerabilities in parameter parsing in Action Pack
#123For those of you interested in more details about this bug: I've posted a first analysis at http://www.insinuator.net/2013/01/rails-yaml/
I don't think this is very responsible of you. You should post this, but you should really wait a week or so.
Re: Multiple vulnerabilities in parameter parsing in Action Pack
#124Some explanation why YAML user input is evil.
It works like this
1.9.3p327 :001 > id = YAML.load("--- !ruby/string:Arel::Nodes::SqlLiteral \"1 --\"\n") # if user input can contain arbitrary YAML
"1 --"
It looks like string, but it's not. 1.9.3p327 :002 > Keyword.where(:id => id).first
Keyword Load (0.3ms) SELECT `keywords`.* FROM `keywords` WHERE `keywords`.`id` = 1 -- LIMIT 1Re: Multiple vulnerabilities in parameter parsing in Action Pack
#125Patch/issue from the old Rails issue tracker:
http://web.archive.org/web/20071218105822/http://dev.rubyonr...
Re: Multiple vulnerabilities in parameter parsing in Action Pack
#126Earlier quoted context omitted.
Thank you for your fast hard work on this - this is what makes the Rails community so great and why I love it over the other options out there. I know this has to have been a stressful weekend. Is there a tip jar anywhere for beer money for the team that worked on this?
You'll have to ask @bitsweat. I only accept hugs. <3
Re: Multiple vulnerabilities in parameter parsing in Action Pack
#127Earlier quoted context omitted.
Thank you for your fast hard work on this - this is what makes the Rails community so great and why I love it over the other options out there. I know this has to have been a stressful weekend. Is there a tip jar anywhere for beer money for the team that worked on this?
You'll have to ask @bitsweat. I only accept hugs. <3
Would also be happy to give you a hug ;-)
Re: Multiple vulnerabilities in parameter parsing in Action Pack
#128Earlier quoted context omitted.
I don't think this is very responsible of you. You should post this, but you should really wait a week or so.
But thats not how the security community works. Once this was posted literally every security team jumped on writing a PoC exploit and distributing it to customers. There will be point and click modules in Metasploit, IMPACT, and CANVAS by the end of the week at latest.
This is the key bit for me: Rubygems is literally straining with everyone being frantic to upgrade. Giving it a few days means that everyone can patch their apps.
I don't believe that everyone will listen to little old me, of course, but that doesn't mean I can't tell them I don't think it's a not-great thing to do.
Re: Multiple vulnerabilities in parameter parsing in Action Pack
#1292. Pull it off next time someone starts with the 'test-replace-static-typing' argument.
3. WIN
Re: Multiple vulnerabilities in parameter parsing in Action Pack
#130Earlier quoted context omitted.
Is this because Yaml doesn't whitelist the classes for the objects that may be instantiated? They are allocated and then instance_variable_set'd so I'd be Very interested to learn how this poses a risk.
The people saying that they have POC code for remote code exec aren't making it up.