Earlier quoted context omitted.
It's a vulnerability in Rails, which is what GitHub is built on. The vulnerability was demonstrated by adding a commit to the Rails project on GitHub, indicating that GitHub suffers from the vulnerability. Here's the relevant issue. It might clarify things a bit better: https://github.com/rails/rails/issues/5228
The issue seems to be a result of an entire hash of the parameters passed in the request being sent to the new method for models. Is this really common practice in Rails code? Sure you can specify in the model that certain attributes can't be changed. But shouldn't this stuff be checked when validating form input? Normally I'd have a hash of filters, with the field/column name mapped to the appropriate set of rules f…
Hacked: commit to rails master on GitHub
51–60 of 240 posts
Re: Hacked: commit to rails master on GitHub
#52Earlier quoted context omitted.
I think it's a mass assignment vulnerability: https://github.com/rails/rails/issues/5228
This guy brought up the vulnerability and the maintainers didn't seem to take it seriously since he wasn't articulate enough or was not approaching them with enough respect maybe for their liking? I wish they would have kissed his ass a little to get the low-down on the vulnerability so I didn't have to worry about my company's private github repos. He deserves props for bring it up for discussion.
Re: Hacked: commit to rails master on GitHub
#53Earlier quoted context omitted.
I think it's a mass assignment vulnerability: https://github.com/rails/rails/issues/5228
Relevant: What I want you to see in that thread I mentioned is the way the core team perceives this. You are not discovering anything unknown, we already know this stuff and we like attr protection to work the way it is. Looks like this guy got really frustrated with the Rails devs basically saying that he didn't know what he was talking about. This reminds me of all of the unsafe defaults that PHP used to have. Same…
I guess that doesn't apply to security.
Re: Hacked: commit to rails master on GitHub
#54Re: Hacked: commit to rails master on GitHub
#55Earlier quoted context omitted.
I think it's a mass assignment vulnerability: https://github.com/rails/rails/issues/5228
If it's a simple mass-assignment vulnerability, the Rails team has nothing to do with it given that mass-assignment is a feature and the vulnerability is well documented: http://edgeguides.rubyonrails.org/security.html#mass-assignm... Heck, I even learned this way back when I was learning Rails: http://railscasts.com/episodes/26-hackers-love-mass-assignme...
That they like to consider it a "feature" doesn't make it any better - it just makes them look like idiots
Re: Hacked: commit to rails master on GitHub
#56We've patched and fixed this on GitHub.
Re: Hacked: commit to rails master on GitHub
#57Re: Hacked: commit to rails master on GitHub
#58Earlier quoted context omitted.
Regardless of the 'hacker's motives/personality, I think this is yet another testimony to the power of open source. When you have this many eyeballs looking at your code, the odds of a good-intentioned (however playful/immature) coder to discover a vulnerability is much greater than those of a real ill-intentioned hacker simply due to the sheer number of the former. The issue will quickly get fixed by the community,…
Hmm? The vulnerability is in github's code (not open source) and not in rails.
Re: Hacked: commit to rails master on GitHub
#59Models: find app/models -type f -name \*.rb | wc -l
Models with attr_accessible: grep -r -m1 "attr_accessible" app/models | wc -l
If those numbers aren't the same, and the missing model files inherit from ActiveRecord::Base, then look into adding attr_accessible.
Re: Hacked: commit to rails master on GitHub
#60Here's my proposal for improving the situation: https://gist.github.com/1974187 Merb's approach was to have mass assignment protection in the controller, and I personally think it's self-evident that it belongs there. Moving it into the controller will also make it easier to solve the tension between reducing the friction of getting up and running quickly and having good security defaults. In general, Rails' conventi…
But wasn't Merb merged into Rails? :) Sigh...