Skip to content

Commit 2ca6f86

Browse files
committed
fixed YAML remote code execution vulnerability
1 parent da42bf9 commit 2ca6f86

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
== master
2+
3+
* Fix for remote code execution bug. For more in-depth information, read about the
4+
recent [Rails hotfix](https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/61bkgvnSGTQ).
5+
Please make sure to upgrade now!
6+
17
== 1.0.2 (2011-07-04)
28

39
* Fix: When specifying a custom formula to convert tags, XML attributes were ignored.
@@ -54,7 +60,7 @@
5460

5561
== 0.2.1 (2011-05-15)
5662

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

6066
<multiRef id="id1">

lib/nori/xml_utility_node.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ def self.available_typecasts=(obj)
5252
self.typecasts["decimal"] = lambda { |v| v.nil? ? nil : BigDecimal(v.to_s) }
5353
self.typecasts["double"] = lambda { |v| v.nil? ? nil : v.to_f }
5454
self.typecasts["float"] = lambda { |v| v.nil? ? nil : v.to_f }
55-
self.typecasts["symbol"] = lambda { |v| v.nil? ? nil : v.to_sym }
5655
self.typecasts["string"] = lambda { |v| v.to_s }
57-
self.typecasts["yaml"] = lambda { |v| v.nil? ? nil : YAML.load(v) }
5856
self.typecasts["base64Binary"] = lambda { |v| v.unpack('m').first }
5957

6058
self.available_typecasts = self.typecasts.keys

0 commit comments

Comments
 (0)