News for hackers. Stuff that matters.
Re:IOS 6 injecting should_group_accessibility_children to PO... by ubernostrum on Wednesday October 03, 2012 @10:34AM (#4607563)
I see. So that whole big mass-assignment security issue that exposed GitHub a while back -- that just didn't happen? Writing code in this style is perfectly safe?
Re:IOS 6 injecting should_group_accessibility_children to PO... by bryanlarsen on Wednesday October 03, 2012 @10:46AM (#4607635)
Writing code in this style is perfectly safe if you do it correctly. GitHub didn't, so the defaults were changed to make it harder to do it incorrectly.

UPDATE: editing to reply since hn won't let me reply directly because the thread is to deep, yet I'm getting downvotes

It's not a tautology. Some things are safe even if you do them wrong. Some things are unsafe no matter how you do them.

Rails changed the defaults so that now you have to deliberately decide to do things unsafely. Rails before 3.2.3 fails un-safe in this scenario, but later versions fail safe. Rails 4 uses a different solution that's even harder to screw up.

Re:IOS 6 injecting should_group_accessibility_children to PO... by jerf on Wednesday October 03, 2012 @10:51AM (#4607662)
"Writing code in this style is perfectly safe if you do it correctly."

That's a tautology.

In general you can't count on code being written "correctly", so this isn't a defense. It is better to have systems that degrade gracefully in the face of humans and their idiosyncrasies, rather than those that fail-unsafe, because you can't build your security system on the assumption that your code will be written by superhumans.

Re:IOS 6 injecting should_group_accessibility_children to PO... by tomjen3 on Wednesday October 03, 2012 @11:12AM (#4607792)
Should all database use be frowned upon because injections are possible if you don't use them correctly?
Re:IOS 6 injecting should_group_accessibility_children to PO... by Pewpewarrows on Wednesday October 03, 2012 @11:26AM (#4607868)
I hope you realize that this is the identical argument PHP developers made whenever someone brought up how insecure the base language, libraries, and configuration were.

Users of a framework should have to go out of their way to make themselves insecure. It shouldn't be insecure by default.