News for hackers. Stuff that matters.
Re:Oj – Optimized JSON in Ruby by viraptor on Monday April 24, 2017 @11:59PM (#14190655)
That's pretty much the same as in case of Yaml, isn't it?
Re:Oj – Optimized JSON in Ruby by jerf on Tuesday April 25, 2017 @09:59AM (#14193535)
If you are referring to the Ruby YAML vulnerability, the problem is that the deserializer ends up calling methods on the deserialized object. This says it doesn't, it merely warns you against doing it yourself, or at least doing it carelessly.
Re:Oj – Optimized JSON in Ruby by regularfry on Tuesday April 25, 2017 @04:12AM (#14191649)
Not so much. With YAML it's a feature baked into the syntax that you have to go to extra effort to avoid. With JSON, it's just a specific data schema you opt in to, so a non-aware decoder will just give you a Hash with some odd data in it.