TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

MultiXml gem has same vulnerability as Rails' CVE-2013-0156 – patch now

44 点作者 fowlduck超过 12 年前

6 条评论

jrochkind1超过 12 年前
Hmm, I'm not sure you could say it has "the same vulnerability".<p>It has the same vulnerability if you pass untrusted input to it, okay.<p>But the point of the Rails vulnerabilty is that every Rails app, by default, was set up to accept external user input and run it through an XML parser. Even if you didn't realize it.<p>If you are using MultiXml, you may or may not be passing untrusted user input to it, depends on what you did with it.<p>Right?
评论 #5041877 未加载
评论 #5042967 未加载
评论 #5041788 未加载
kanzure超过 12 年前
Yo dawgs, the mailchimp, aws-sdk, jenkins and twilio gems use HTTParty which uses multi_xml. You should look into this.
评论 #5041044 未加载
评论 #5040774 未加载
评论 #5040868 未加载
评论 #5040742 未加载
评论 #5041293 未加载
评论 #5041118 未加载
nelhage超过 12 年前
I strongly recommend loading something like this in your Ruby applications: <a href="https://gist.github.com/4507129" rel="nofollow">https://gist.github.com/4507129</a><p>It will prevent YAML.rb from instantiating arbitrary objects, which will close off this entire class of problems.<p>Obviously, if you <i>do</i> use YAML as a serialization format for arbitrary objects, this won't work, but odds are you aren't doing that.
评论 #5040966 未加载
fowlduck超过 12 年前
Grape is also affected:<p><a href="https://groups.google.com/forum/?fromgroups=#!topic/ruby-grape/qX38Iy1Bwo8" rel="nofollow">https://groups.google.com/forum/?fromgroups=#!topic/ruby-gra...</a>
fowlduck超过 12 年前
A version of multi_xml with this fix has been pushed:<p><a href="https://rubygems.org/gems/multi_xml/versions/0.5.2" rel="nofollow">https://rubygems.org/gems/multi_xml/versions/0.5.2</a>
jfirebaugh超过 12 年前
I'm keeping track of a list of vulnerable gems here: <a href="https://gist.github.com/4532291" rel="nofollow">https://gist.github.com/4532291</a>