Funnily, the first Diaspora release had the same issue and the devs were ridiculed and called noobs by a big part of the HN community and security "experts" wrote big posts about it. The different reaction here is interesting to say the least.
In the case of Diaspora it was a less subtle and more obvious issue. They just weren't checking for authorization, as in: def destroy @album = Album.find_by_id params[:id] @album.destroy [...] end when the second line should have been something like: user.albums.find_by_id params[:id] But, well, they're both pretty bad mistakes.
Hacked: commit to rails master on GitHub
101–110 of 240 posts
Re: Hacked: commit to rails master on GitHub
#102Here'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…
self-evident It is. The more interesting question is why it takes rails 7 years (and counting) to come to this conclusion. I'll take it one further and sing my song about the Rails ActiveRecord implementation here, which is tangentially related. The promise of AR is to reflect on the database at startup and then "magically work". The problem in rails is that nothing magically works. What you get out of the box is an…
Re: Hacked: commit to rails master on GitHub
#103Earlier quoted context omitted.
Thank you commenter "holman" on this third party discussion site, but as a paying customer could github please post something official somewhere like now
Holman works at GitHub.
Re: Hacked: commit to rails master on GitHub
#104Here'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…
self-evident It is. The more interesting question is why it takes rails 7 years (and counting) to come to this conclusion. I'll take it one further and sing my song about the Rails ActiveRecord implementation here, which is tangentially related. The promise of AR is to reflect on the database at startup and then "magically work". The problem in rails is that nothing magically works. What you get out of the box is an…
Why end your rant with an insult to its readers? Please leave the martyrdom out next time.
Re: Hacked: commit to rails master on GitHub
#105Re: Hacked: commit to rails master on GitHub
#106Earlier quoted context omitted.
self-evident It is. The more interesting question is why it takes rails 7 years (and counting) to come to this conclusion. I'll take it one further and sing my song about the Rails ActiveRecord implementation here, which is tangentially related. The promise of AR is to reflect on the database at startup and then "magically work". The problem in rails is that nothing magically works. What you get out of the box is an…
> cue the downvotes Why end your rant with an insult to its readers? Please leave the martyrdom out next time.
Re: Hacked: commit to rails master on GitHub
#107Here'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…
Re: Hacked: commit to rails master on GitHub
#108I'm confused. Is this a generic Github vulnerability or is this a vulnerability in tools outside of Github used by Rails? The 'hacker' seems to suggest it's the former ("Github pwned"), which would be pretty serious stuff.
I think it's a mass assignment vulnerability: https://github.com/rails/rails/issues/5228
Re: Hacked: commit to rails master on GitHub
#109Posting it as an issue on the Rails repo and then exploiting GitHub with it is a great way to get attention, but not necessarily the most responsible. I disclosed a vulnerability to GitHub before. I dropped it into their Issues system marked private with the heading "URGENT". It was a Sunday and I got a response + a fix from Tom Preston-Wener himself within a few hours. That, in my mind, would have been a more respon…
Re: Hacked: commit to rails master on GitHub
#110Posting it as an issue on the Rails repo and then exploiting GitHub with it is a great way to get attention, but not necessarily the most responsible. I disclosed a vulnerability to GitHub before. I dropped it into their Issues system marked private with the heading "URGENT". It was a Sunday and I got a response + a fix from Tom Preston-Wener himself within a few hours. That, in my mind, would have been a more respon…
That might be unprofessional but it was also audacious - and easily the best way to get the word out quickly about an 'in the wild' exploit that will impact a huge number of apps.
Additionally: GitHub is a critical piece of infrastructure for a huge number of companies, contractors and start-ups. On balance, protecting GitHub from public embarrassment is far outweighed by the potentional impact of this sort of flaw. If a good old public "git@github ~ $ rake over coals" is what is needed to ensure that our IP is sufficiently protected, so be it.