A cross-site scripting (XSS) flaw was found in the way the 'translate' helper method of the Ruby on Rails performed HTML escaping of interpolated user input, when interpolation in combination with HTML-safe translations were used. A remote attacker could use this flaw to execute arbitrary HTML or web script by providing a specially-crafted input to Ruby on Rails application, using the ActionPack module and its 'translate' helper method without explicit (application specific) sanitization of user provided input. References: [1] http://weblog.rubyonrails.org/2011/11/18/rails-3-1-2-has-been-released [2] http://weblog.rubyonrails.org/2011/11/18/rails-3-0-11-has-been-released [3] https://secunia.com/advisories/46877/ [4] https://bugs.gentoo.org/show_bug.cgi?id=390915 Relevant upstream patches: [5] http://groups.google.com/group/rubyonrails-security/browse_thread/thread/2b61d70fb73c7cc5
This issue affects the versions of the rubygem-actionpack package, as shipped with Fedora release of 16 and 15. Please schedule an update. -- This issue did NOT affect the version of the rubygem-actionpack package, as shipped with Fedora release of 14. -- This issue did NOT affect the version of the rubygem-actionpack package, as shipped with Fedora EPEL 5.
Created rubygem-actionpack tracking bugs for this issue Affects: fedora-16 [bug 755006] Affects: fedora-15 [bug 755007]
CVE request: [6] http://www.openwall.com/lists/oss-security/2011/11/18/6
This issue was given the name CVE-2011-4319: http://www.openwall.com/lists/oss-security/2011/11/18/8
This is corrected in upstream versions 3.0.11 and 3.1.2 (but 3.1.3 is recommended due to regressions in 3.1.2). http://weblog.rubyonrails.org/2011/11/20/rails-3-1-3-has-been-released
[1] http://weblog.rubyonrails.org/2011/11/18/rails-3-1-2-has-been-released [2] http://weblog.rubyonrails.org/2011/11/18/rails-3-0-11-has-been-released are now [1] http://weblog.rubyonrails.org/2011/11/17/rails-3-1-2-has-been-released [2] http://weblog.rubyonrails.org/2011/11/17/rails-3-0-11-has-been-released