3 ms·
There's also an 'Unsafe Query Risk', which is not a CVE and does not have a patch.[0] I believe this script[1] should expose some of those dangerous columns. T
by kevinmchugh 13y ago
There's also an 'Unsafe Query Risk', which is not a CVE and does not have a patch.[0]
I believe this script[1] should expose some of those dangerous columns. There's still the join alias risk, but I'm not sure, other than parsing a schema.rb, how to get at those effectively.
[0] https://groups.google.com/forum/#!topic/rubyonrails-security/8CVoclw-Xkk https://groups.google.com/forum/#!topic/rubyonrails-security...
[1] https://gist.github.com/KevinMcHugh/fab941ec3677f9a19ee0 https://gist.github.com/KevinMcHugh/fab941ec3677f9a19ee0
- Dorian-Marie 13y agoThanks a lot for this script, I was going to check manually.
- jenseng 13y agosomething like this will find any associations that share a name with a column in each model: https://gist.github.com/jenseng/2039fd57f5db40779871 https://gist.github.com/jenseng/2039fd57f5db40779871