Bug 755004 (CVE-2011-4319) - CVE-2011-4319 rubygem-actionpack: XSS in the 'translate' helper method
Summary: CVE-2011-4319 rubygem-actionpack: XSS in the 'translate' helper method
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2011-4319
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 755006 755007 760922 813126
Blocks: 755014
TreeView+ depends on / blocked
 
Reported: 2011-11-18 14:46 UTC by Jan Lieskovsky
Modified: 2019-09-29 12:48 UTC (History)
8 users (show)

Fixed In Version: rubygem-actionpack 3.0.11, rubygem-actionpack 3.1.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-24 15:37:21 UTC


Attachments (Terms of Use)

Description Jan Lieskovsky 2011-11-18 14:46:23 UTC
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

Comment 1 Jan Lieskovsky 2011-11-18 14:48:01 UTC
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.

Comment 2 Jan Lieskovsky 2011-11-18 14:49:20 UTC
Created rubygem-actionpack tracking bugs for this issue

Affects: fedora-16 [bug 755006]
Affects: fedora-15 [bug 755007]

Comment 3 Jan Lieskovsky 2011-11-18 14:54:30 UTC
CVE request:
[6] http://www.openwall.com/lists/oss-security/2011/11/18/6

Comment 4 Vincent Danen 2011-11-18 19:19:47 UTC
This issue was given the name CVE-2011-4319:

http://www.openwall.com/lists/oss-security/2011/11/18/8

Comment 5 Vincent Danen 2011-11-28 17:22:52 UTC
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


Note You need to log in before you can comment on or make changes to this bug.