3 ms·
> Mass assignment is a fairly normal thing to do No, it's an abnormal thing to do and a security hole. > any parameters you want the model to ignore can be ma
by masklinn 14y ago
> Mass assignment is a fairly normal thing to do
No, it's an abnormal thing to do and a security hole.
> any parameters you want the model to ignore can be marked as so
Which is complete insanity.
> Rails loves DRY.
Yes so does PHP, hence register_globals.
That's on the "idiotic" side of "I don't want to write stuff", and even the Rails staff stopped defending this insanity back in March.
- tomjen3 14y agoIf you want to argue against facts, please go elsewhere. Mass assignment is widely used in Rails.
- untog 14y agoJust because something is widely used does not mean it is not a security hole. Mass assignment is a security hole, plain and simple- in Rails and anywhere else.
- masklinn 14y ago> Mass assignment is widely used in Rails. And register_globals was widely used in PHP, that does not make it anything but moronic.
- eli 14y agoI don't think register_globals has been widely used for at least 10 or 12 years. It's been deprecated for a while and was removed completely in 5.4.0.
- masklinn 14y agoHence "was". It was widely used at one point, if only because it was enabled by default until 2002 (disabled by default was introduced in PHP 4.2)