5 ms·
Rails XML Parsing Vulnerability affecting JRuby users
- slashdotdash 14y agoThree vulnerabilities announced at the same time... * [CVE-2013-1855] XSS vulnerability in sanitize_css in Action Pack [1] * [CVE-2013-1856] XML Parsing Vulnerability affecting JRuby users [2] * [CVE-2013-1857] XSS Vulnerability in the `sanitize` helper of Ruby on Rails [3] Two of these affect all Rails versions, not just JRuby, so are more serious. [1] https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/4_QHo4BqnN8 https://groups.google.com/forum/?fromgroups=#!topic/rubyonra... [2] https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/KZwsQbYsOiI https://groups.google.com/forum/?fromgroups=#!topic/rubyonra... [3] https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/zAAU7vGTPvI https://groups.google.com/forum/?fromgroups=#!topic/rubyonra...
- cheald 14y agoI was gonna post 'em all, but my second one got auto-dead'd. Probably tripped the spam filter.
- matthuggins 14y agoIs it possible to update the title of this post to remove the "affecting JRuby users" portion? The current title will give non-JRuby users a false sense of security.
- cheald 14y agoThis vulnerability is only applicable to JRuby users who use the JDOM parser. JDOM is not usable on non-JRuby platforms.
- matthuggins 14y agoCVE-2013-1855 & CVE-2013-1857 are applicable to ALL Ruby users, not just JRuby.
- cheald 14y agoOh, I read you now. Since the link goes to just the JRuby-related announcement, I'm going to leave it in place for now, but please go ahead and submit the other two (especially the sanitize() one) - the spam filter seems to be upset at me. :)
- tenderlove 14y agoThere's supposed to be 4, but google groups seems to be swallowing my announcement emails. :'( Here is the fourth one: https://groups.google.com/forum/#!topic/ruby-security-ann/o0Dsdk2WrQ0 https://groups.google.com/forum/#!topic/ruby-security-ann/o0...
- recuter 14y agoSo this seems similar to the mess Rails had recently, which is kind of surprising because one would think it would prompt people to take a suspicious glance at their own XML parsing bits sooner rather than later.
- danso 14y agoFrom the provided patch: the HTML sanitizer vulnerability appears to be a bug separate from the past YAML deserialization security problems (and somewhat less severe). The sole change seems to be in the regex that was used to match the protocol separator (i.e. the colon). The change is from this: /:|(�*58)|(p)|(%|%)3A/ to this: /:|(�*58)|(p)|(�*3a)|(%|%)3A/i Presumably the previous regex allowed an attacker to insert a variation of "javascript:foo()" and get past a HTML sanitize call.
- static_typed 14y agoRails and security. Again. Sigh.
- bradleyland 14y agoIf you're going to work in software, you had better get used to it. The difference between software with a CVE rap sheet and software without is that you know about the vulns in the software with the CVE rap sheet.
- deleted 14y ago[deleted]
- lhc- 14y agoYou know about some of them, anyway.
- bradleyland 14y agoFair point. The larger picture is that while the number of CVEs certainly matters, what matters most is that the maintainers of the software maintain a record of quick turn around on patches and a welcoming attitude toward security researchers. IMO, Rails has done a better job of this recently, and that makes me really happy.