Comment

Comment by dsl

The author wastes a lot of breath refuting claims that this is a huge Rails bug, then finally comes clean 3/4 of the way in:

   Other exploitable scenarios

   Your code is vulnerable if you call Foo.find_by_whatever(bar), where bar can be
   an arbitrary user-specified hash with symbol keys.

This is a fundamental flaw that requires a very specific set of circumstances (which the Rails community is clinging to as a get out of jail free card), similar to the Python Pickle boondoggle [1], which will result in lots of application specific vulnerabilities down the road.

1. http://nadiana.com/python-pickle-insecure

parent dsl 14 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton