Skip to content

Commit

Permalink
fixed YAML remote code execution vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiii committed Jan 10, 2013
1 parent 7d26332 commit d9b6866
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
@@ -1,3 +1,9 @@
## master

* Fix for remote code execution bug. For more in-depth information, read about the
recent [Rails hotfix](https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/61bkgvnSGTQ).
Please make sure to upgrade now!

## 1.1.3 (2012-07-12)

* Fix: Merged [pull request 21](https://github.com/rubiii/nori/pull/21) to fix an
Expand Down Expand Up @@ -77,7 +83,7 @@

## 0.2.1 (2011-05-15)

* Fix: Changed XML attributes converted to Hash keys to be prefixed with an @-sign.
* Fix: Changed XML attributes converted to Hash keys to be prefixed with an @-sign.
This avoids problems with attributes and child nodes having the same name.

<multiRef id="id1">
Expand Down
2 changes: 0 additions & 2 deletions lib/nori/xml_utility_node.rb
Expand Up @@ -77,9 +77,7 @@ def self.available_typecasts=(obj)
self.typecasts["decimal"] = lambda { |v| v.nil? ? nil : BigDecimal(v.to_s) }
self.typecasts["double"] = lambda { |v| v.nil? ? nil : v.to_f }
self.typecasts["float"] = lambda { |v| v.nil? ? nil : v.to_f }
self.typecasts["symbol"] = lambda { |v| v.nil? ? nil : v.to_sym }
self.typecasts["string"] = lambda { |v| v.to_s }
self.typecasts["yaml"] = lambda { |v| v.nil? ? nil : YAML.load(v) }
self.typecasts["base64Binary"] = lambda { |v| v.unpack('m').first }

self.available_typecasts = self.typecasts.keys
Expand Down

0 comments on commit d9b6866

Please sign in to comment.