如果你去了v2ex,一定会看到这个标题: Rails 爆出严重安全漏洞(http://www.v2ex.com/t/28768#reply2), 别激动,v2ex对ruby来说,它是外行社区,看了帖子内容我就意识到都是在看热闹,没说道点子上。
Egor Homakov,这个哥们是一个Rails开发者。报出的问题是mass assignment没保护的问题。这个问题是什么:看这个:
Hackers Love Mass Assignment
#26 Hackers Love Mass Assignment(http://railscasts.com/episodes/26-hackers-love-mass-assignment
)
github发现后,把这个Homakov的账号给ban住了。这种反映让人不爽,(
http://chrisacky.posterous.com/github-you-have-let-us-all-down
),在危机公关上是个败笔。
最后,好消息,@wycats已经提议强制保护(https://gist.github.com/1974187
)
后又写了他对attr_accessible (and an analogy to rails_xss
)的安全观点(http://news.ycombinator.com/item?id=3664334
),很快已经有人就把代码写到rails-master分支了(https://github.com/rails/rails/commit/641a4f62405cc2765424320932902ed8076b5d38
)
