Better HN
top
new
best
ask
show
jobs
Log in
Sign up
ActiveRecord 3.1 - Mass-Assignment Roles | Better HN
ActiveRecord 3.1 - Mass-Assignment Roles
(ablogaboutcode.com)
16 points · by
panthomakos
· 15y ago · 4 comments
Comments
[–]
oomkiller
15y ago
Write up a patch? It may be a little late in the game to be changing APIs, but it might be ok since it's just beta 1.
[–]
mark_l_watson
15y ago
This month's Communications of the ACM has a good article by Patrick McKenzie on Rails security, and the mass assignment vulnerability in particular.
[–]
roryokane
15y ago
link to that article:
http://m.cacm.acm.org/magazines/2011/5/107701-weapons-of-mas...
[–]
tomhallett
15y ago
Chaining the role would make it easier to add the role to inherited_resources, you'd just need to add it to your beginning_of_association_chain