News for hackers. Stuff that matters.
[dead]
Re:A week with a Rails Security Strategy: More security, new... by josai on Thursday June 18, 2015 @12:03PM (#9739460)
> have not seen one yet

Perhaps that's because the kind of person who has this kind of attitude, and who'd create an account called "tddfuckwitz" to come and spout it on HN, doesn't make a very good impression on the kind of rails devs who do know what they're doing, so you don't win them as clients.

- signed, a professional rails dev who takes security and code quality very seriously indeed

[dead]
Re:A week with a Rails Security Strategy: More security, new... by astrodust on Thursday June 18, 2015 @01:08PM (#9740065)
Yeah! They'd use PHP! Or Java! Those never have any problems and their code-bases are always flawless.

I'll take a bad Rails app any day over what people churn out in other platforms. I've seen Java apps so impenetrably opaque it's not even clear what it does. Rails is Rails. It's boring. It works. It's pretty hard to mangle the project so badly that you can't make sense of it.

Unless, of course, you've got no idea what Rails is or how it works.

[dead]
Re:A week with a Rails Security Strategy: More security, new... by astrodust on Thursday June 18, 2015 @01:37PM (#9740337)
What "replacements" are you talking about here?

Laravel has tried to push PHP in the right direction in a huge way, but it's not without its minor problems, either. Additionally, like any non-trivial code base it's had some vulnerabilities.

Now of course nobody uses Laravel, they just hand-roll, so the sorts of bugs you see in the PHP world are more pattern based (e.g. injection, XSS) than you'd see in a platform like Rails that is driven by convention.

Re:A week with a Rails Security Strategy: More security, new... by evilduck on Thursday June 18, 2015 @01:01PM (#9739998)
Says the 8 hour old troll account.
Re:A week with a Rails Security Strategy: More security, new... by dang on Thursday June 18, 2015 @03:00PM (#9740876)
Please don't feed trolls with attention. Instead, flag them by clicking on a comment's timestamp to go to its page, then clicking "flag" at the top.
Re:A week with a Rails Security Strategy: More security, new... by evilduck on Thursday June 18, 2015 @05:43PM (#9741792)
I did.
[dead]
Re:A week with a Rails Security Strategy: More security, new... by evilduck on Thursday June 18, 2015 @01:32PM (#9740284)
Hope you have a great day.
Re:A week with a Rails Security Strategy: More security, new... by KurtMueller on Thursday June 18, 2015 @01:11PM (#9740094)
What are some of the lighter frameworks you migrate your clients to? What do you mean by lean stacks?
Re:A week with a Rails Security Strategy: More security, new... by LunaSea on Thursday June 18, 2015 @11:38AM (#9739265)
I didn't even know there was such a thing as "Ruby on Rails Security".
Re:A week with a Rails Security Strategy: More security, new... by LunaSea on Thursday June 18, 2015 @12:53PM (#9739936)
Re:A week with a Rails Security Strategy: More security, new... by astrodust on Thursday June 18, 2015 @01:06PM (#9740048)
It's a complicated platform, but on the whole has a very good track record.

Picking on it for having vulnerabilities without providing something in the way of a comparison is not very meaningful.

Re:A week with a Rails Security Strategy: More security, new... by trimble-alum on Thursday June 18, 2015 @03:08PM (#9740942)
It's imporant to pick out vulnerabilities and deficiencies compared to other projects to get them addressed, rather than only say nice things. However, the core issue is that people raising them are usually ignored until there's an embarrassing hack or demonstration (Homakov).

For example, all new gem releases should be signed and `HighSecurity` should be the policy but it's taken years to get very little progress. Changing to that policy would prevent entire classes of attacks, attacks that could subtly inject code into all sorts of apps in difficult-to-find ways. Large projects are still shipping unsigned gems, unsigned commits and unsigned tags. If RubyGems were hacked, progress might move slightly faster.

Re:A week with a Rails Security Strategy: More security, new... by astrodust on Thursday June 18, 2015 @05:33PM (#9741738)
Rubygems has been lagging behind other packagers like Apt, RPM, NPM, and even newer things like Rust's Cargo. It's woefully overdue for an update.

That being said, there's great services like GemCanary (https://gemcanary.com/) that will read your Gemfile and produce a list of vulnerable packages for you automatically. It'll even email you alerts when there's problems.

The security story in Rails might not be perfect, but at least there's reporting and tools.

Keep pushing for signed packages, though. Long overdue.

Re:A week with a Rails Security Strategy: More security, new... by sanderjd on Thursday June 18, 2015 @03:10PM (#9740958)
You're getting downvoted because security issues are far from unique to Ruby on Rails. Are you aware of any web frameworks with a pristine security history?
Re:A week with a Rails Security Strategy: More security, new... by LunaSea on Thursday June 18, 2015 @06:06PM (#9741907)
Node.js is not bad.
Re:A week with a Rails Security Strategy: More security, new... by dham on Thursday June 18, 2015 @09:20PM (#9742577)
Re:A week with a Rails Security Strategy: More security, new... by LunaSea on Friday June 19, 2015 @05:06AM (#9743695)
Express.js has 5 vulnerabilities in 6 years.

Yeah I think I'm going to take my chances with Express.js rather than Ruby on Rails with it 57 vulnerabilities in 6 years.

Re:A week with a Rails Security Strategy: More security, new... by sanderjd on Tuesday June 23, 2015 @02:42PM (#9766759)
The problem with thinking this way is that you don't know what security issues that nobody knows about yet are lurking in there. I remember the time before the recent spate of Rails vulnerabilities in the last 5 years or so, and I thought similarly about its security as you seem to about the Nodejs ecosystem. It's definitely possible that your confidence won't ever be punctured by a similar run of security issues, but my personal view is that it tends to be hubris to think your favorite technology is just better at security, for vague reasons.
Re:A week with a Rails Security Strategy: More security, new... by dham on Friday June 19, 2015 @07:42AM (#9744075)
Express is a micro framework, Rails is not. Rails covers more ground. You would want to compare security of Express to Sinatra or Grape.