Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1036922 - (CVE-2013-4491) CVE-2013-4491 rubygem-actionpack: i18n missing translation XSS
CVE-2013-4491 rubygem-actionpack: i18n missing translation XSS
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20131203,repor...
: Security
Depends On: 1036415 1036420 1036421 1037487 1120007 1120008 1159440 1165370 1165371
Blocks: 1000138 1036411
  Show dependency treegraph
 
Reported: 2013-12-02 17:19 EST by Tomas Hoger
Modified: 2016-04-26 10:06 EDT (History)
37 users (show)

See Also:
Fixed In Version: rubygem-actionpack 3.2.16, rubygem-actionpack 4.0.2
Doc Type: Bug Fix
Doc Text:
It was discovered that the internationalization component of Ruby on Rails could, under certain circumstances, return a fallback HTML string that contained user input. A remote attacker could possibly use this flaw to perform a reflective cross-site scripting (XSS) attack by providing a specially crafted input to an application using the aforementioned component.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-01-17 00:35:48 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Upstream patch for 3.2.x (3.80 KB, patch)
2013-12-02 17:22 EST, Tomas Hoger
no flags Details | Diff
Upstream patch for 4.0.x (3.77 KB, patch)
2013-12-02 17:23 EST, Tomas Hoger
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:1794 normal SHIPPED_LIVE Important: ruby193-rubygem-actionpack security update 2013-12-05 22:00:44 EST
Red Hat Product Errata RHSA-2014:0008 normal SHIPPED_LIVE Important: ruby193-rubygem-actionpack security update 2014-01-06 18:02:25 EST
Red Hat Product Errata RHSA-2014:1863 normal SHIPPED_LIVE Important: Subscription Asset Manager 1.4 security update 2014-11-17 17:08:19 EST

  None (edit)
Description Tomas Hoger 2013-12-02 17:19:09 EST
Quoting from an upcoming Ruby on Rails security advisory:


Reflective XSS Vulnerability in Ruby on Rails

There is a vulnerability in the internationalization component of Ruby on Rails. Under certain common configurations an attacker can provide specially crafted input which will execute a reflective XSS attack.  This vulnerability has been assigned the CVE identifier CVE-2013-4491.

Versions Affected:  3.0.6 and all later versions.
Not affected:       3.0.5 and earlier 3.0.x versions.
Fixed Versions:     4.0.2, 3.2.16.

The root cause of this issue is a vulnerability in the i18n gem which has been assigned the identifier CVE-2013-4492. For this reason applications are also not affected if they have upgraded to the following i18n versions: 
* i18n-0.6.6 for Rails 4.0.x and 3.2.x applications
* i18n-0.5.1 for Rails 3.1.x and 3.0.x applications

Impact 
------ 
When the i18n gem is unable to provide a translation for a given string, it creates a fallback HTML string.  Under certain common configurations this string can contain user input which would allow an attacker to execute a reflective XSS attack.

All users running an affected release should either upgrade or use one of the workarounds immediately. 

Releases 
-------- 
The 4.0.2 and 3.2.16 releases are available at the normal locations. 

Credits 
------- 
Thanks to Peter McLarnan of Matasano Security for reporting the issue to us, and to Sven Fuchs and Christopher Dell for working with us on the fix.
Comment 1 Tomas Hoger 2013-12-02 17:22:20 EST
Created attachment 831807 [details]
Upstream patch for 3.2.x
Comment 2 Tomas Hoger 2013-12-02 17:23:22 EST
Created attachment 831819 [details]
Upstream patch for 4.0.x
Comment 4 errata-xmlrpc 2013-12-05 17:04:45 EST
This issue has been addressed in following products:

  Red Hat Software Collections for RHEL-6

Via RHSA-2013:1794 https://rhn.redhat.com/errata/RHSA-2013-1794.html
Comment 5 errata-xmlrpc 2014-01-06 13:04:54 EST
This issue has been addressed in following products:

  OpenStack 3 for RHEL 6

Via RHSA-2014:0008 https://rhn.redhat.com/errata/RHSA-2014-0008.html
Comment 9 Kurt Seifried 2014-11-13 01:18:29 EST
Acknowledgements:

Red Hat would like to thank Ruby on Rails upstream for reporting this issue. Upstream acknowledges  Peter McLarnan as the original reporter.
Comment 10 Martin Prpič 2014-11-14 11:20:49 EST
IssueDescription:

It was discovered that the internationalization component of Ruby on Rails could, under certain circumstances, return a fallback HTML string that contained user input. A remote attacker could possibly use this flaw to perform a reflective cross-site scripting (XSS) attack by providing a specially crafted input to an application using the aforementioned component.
Comment 11 errata-xmlrpc 2014-11-17 12:09:13 EST
This issue has been addressed in the following products:

  Red Hat Subscription Asset Manager 1.4

Via RHSA-2014:1863 https://rhn.redhat.com/errata/RHSA-2014-1863.html

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