Bug 853632 (CVE-2013-6415) - VUL-0: CVE-2013-6415: rubygem-actionpack: number_to_currency XSS
Summary: VUL-0: CVE-2013-6415: rubygem-actionpack: number_to_currency XSS
Status: RESOLVED FIXED
Alias: CVE-2013-6415
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Deadline: 2014-02-25
Assignee: Security Team bot
QA Contact: Security Team bot
URL:
Whiteboard: maint:released:sle11-sp2:55540 maint:...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-04 13:19 UTC by Alexander Bergmann
Modified: 2014-05-21 08:14 UTC (History)
4 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
patch for 3.2.x (2.83 KB, patch)
2013-12-04 13:20 UTC, Alexander Bergmann
Details | Diff
patch for 4.0.x (2.20 KB, patch)
2013-12-04 13:21 UTC, Alexander Bergmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bergmann 2013-12-04 13:19:47 UTC
CVE-2013-6415 is public via oss-security:

XSS Vulnerability in number_to_currency

There is an XSS vulnerability in the number_to_currency helper in Ruby on Raile. This vulnerability has been assigned the CVE identifier CVE-2013-6415.

Versions Affected:  All.
Fixed Versions:     4.0.2, 3.2.16.

Impact 
------ 
The number_to_currency helper allows users to nicely format a numeric value. One of the parameters to the helper (unit) is not escaped correctly.  Application which pass user controlled data as the unit parameter are vulnerable to an XSS attack.

All users passing user controlled data as number_to_currency's unit parameters 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. 

Workarounds 
----------- 

The workaround for this issue is to escape the value passed to the :unit parameter.  For example, replace code like this:

  <%= number_to_currency(1.02, unit: params[:currency]) %>

With code like this

  <%= number_to_currency(1.02, unit: h(params[:currency])) %>

Patches 
------- 
To aid users who aren't able to upgrade immediately we have provided patches for the two supported release series.  They are in git-am format and consist of a single changeset. 

* 4-0-number_to_currency_xss.patch - Patch for 4.0 series 
* 3-2-number_to_currency_xss.patch - Patch for 3.2 series 

Please note that only the 4.0.x and 3.2.x series are supported at present.  Users of earlier unsupported releases are advised to upgrade as soon as possible as we cannot guarantee the continued availability of
security fixes for unsupported releases.

Credits 
------- 
Thanks to Ankit Gupta for reporting the issue to us and working with us on a fix.


References:
http://permalink.gmane.org/gmane.comp.security.oss.general/11601
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-6415
https://bugzilla.redhat.com/show_bug.cgi?id=1036910
Comment 1 Alexander Bergmann 2013-12-04 13:20:48 UTC
Created attachment 570193 [details]
patch for 3.2.x
Comment 2 Alexander Bergmann 2013-12-04 13:21:10 UTC
Created attachment 570194 [details]
patch for 4.0.x
Comment 3 Swamp Workflow Management 2013-12-04 23:00:37 UTC
bugbot adjusting priority
Comment 5 Swamp Workflow Management 2013-12-06 15:26:21 UTC
The SWAMPID for this issue is 55366.
This issue was rated as moderate.
Please submit fixed packages until 2013-12-20.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 7 Bernhard Wiedemann 2013-12-10 17:00:31 UTC
This is an autogenerated message for OBS integration:
This bug (853632) was mentioned in
https://build.opensuse.org/request/show/210397 12.2 / rubygem-actionpack-2_3
https://build.opensuse.org/request/show/210399 12.2 / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/210404 12.3 / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/210405 13.1 / rubygem-actionpack-3_2
Comment 8 Bernhard Wiedemann 2013-12-12 18:00:30 UTC
This is an autogenerated message for OBS integration:
This bug (853632) was mentioned in
https://build.opensuse.org/request/show/210711 12.2 / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/210713 12.3 / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/210714 13.1 / rubygem-actionpack-3_2
https://build.opensuse.org/request/show/210715 12.2 / rubygem-actionpack-2_3
Comment 10 Ruediger Oertel 2013-12-17 00:26:14 UTC
patchinfos for SWAMPID: 55506 do reference bnc#846239 but should be referencing
this bug
Comment 12 Marcus Meissner 2013-12-17 10:29:06 UTC
i modified it
Comment 13 Swamp Workflow Management 2013-12-18 13:04:40 UTC
openSUSE-SU-2013:1904-1: An update that fixes 5 vulnerabilities is now available.

Category: security (moderate)
Bug References: 853625,853627,853632,853633
CVE References: CVE-2013-0155,CVE-2013-4491,CVE-2013-6414,CVE-2013-6415,CVE-2013-6417
Sources used:
openSUSE 12.3 (src):    rubygem-actionpack-3_2-3.2.12-1.8.1
Comment 14 Swamp Workflow Management 2013-12-18 13:05:03 UTC
openSUSE-SU-2013:1905-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 853632
CVE References: CVE-2013-6415
Sources used:
openSUSE 12.2 (src):    rubygem-actionpack-2_3-2.3.17-2.25.1
Comment 15 Swamp Workflow Management 2013-12-18 13:05:38 UTC
openSUSE-SU-2013:1906-1: An update that fixes 5 vulnerabilities is now available.

Category: security (moderate)
Bug References: 853625,853627,853632,853633
CVE References: CVE-2013-0155,CVE-2013-4491,CVE-2013-6414,CVE-2013-6415,CVE-2013-6417
Sources used:
openSUSE 13.1 (src):    rubygem-actionpack-3_2-3.2.13-2.4.1
Comment 16 Swamp Workflow Management 2013-12-18 13:06:23 UTC
openSUSE-SU-2013:1907-1: An update that fixes 5 vulnerabilities is now available.

Category: security (moderate)
Bug References: 853625,853627,853632,853633
CVE References: CVE-2013-0155,CVE-2013-4491,CVE-2013-6414,CVE-2013-6415,CVE-2013-6417
Sources used:
openSUSE 12.2 (src):    rubygem-actionpack-3_2-3.2.12-3.21.1
Comment 17 Swamp Workflow Management 2014-01-03 21:05:56 UTC
openSUSE-SU-2014:0009-1: An update that fixes 5 vulnerabilities is now available.

Category: security (moderate)
Bug References: 846239,853625,853627,853632,853633
CVE References: CVE-2013-4389,CVE-2013-4491,CVE-2013-6414,CVE-2013-6415,CVE-2013-6417
Sources used:
openSUSE 13.1 (src):    rubygem-actionpack-3_2-3.2.13-2.9.1
openSUSE 12.3 (src):    rubygem-actionpack-3_2-3.2.12-1.13.1
openSUSE 12.2 (src):    rubygem-actionpack-3_2-3.2.12-3.26.2
Comment 18 Swamp Workflow Management 2014-01-03 22:04:48 UTC
openSUSE-SU-2014:0019-1: An update that fixes three vulnerabilities is now available.

Category: security (moderate)
Bug References: 809935,809940,853632
CVE References: CVE-2013-1855,CVE-2013-1857,CVE-2013-6415
Sources used:
openSUSE 11.4 (src):    rubygem-actionpack-2_3-2.3.17-39.1
Comment 19 Sebastian Krahmer 2014-01-28 12:16:18 UTC
released
Comment 20 Swamp Workflow Management 2014-01-28 14:50:22 UTC
Update released for: rubygem-actionpack-3_2, rubygem-actionpack-3_2-doc
Products:
SLE-SLMS 1.3 (x86_64)
SLE-STUDIOONSITE 1.3 (x86_64)
SLE-WEBYAST 1.3 (i386, ia64, ppc64, s390x, x86_64)
Comment 21 Swamp Workflow Management 2014-01-28 14:55:57 UTC
Update released for: rubygem-actionpack-2_1
Products:
SLE-SDK 11-SP3 (i386, ia64, ppc64, s390x, x86_64)
Comment 22 Swamp Workflow Management 2014-01-28 15:03:21 UTC
Update released for: rubygem-actionpack-2_1
Products:
SLE-SDK 11-SP2 (i386, ia64, ppc64, s390x, x86_64)
Comment 23 Swamp Workflow Management 2014-01-28 15:05:05 UTC
Update released for: rubygem-actionpack-2_3
Products:
SLE-SDK 11-SP2 (i386, ia64, ppc64, s390x, x86_64)
Comment 24 Swamp Workflow Management 2014-01-28 18:05:44 UTC
SUSE-SU-2014:0152-1: An update that solves four vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 846239,853625,853627,853632,853633
CVE References: CVE-2013-4491,CVE-2013-6414,CVE-2013-6415,CVE-2013-6417
Sources used:
WebYaST 1.3 (src):    rubygem-actionpack-3_2-3.2.12-0.11.1
SUSE Studio Onsite 1.3 (src):    rubygem-actionpack-3_2-3.2.12-0.11.1
SUSE Lifecycle Management Server 1.3 (src):    rubygem-actionpack-3_2-3.2.12-0.11.1
Comment 25 Swamp Workflow Management 2014-01-28 18:06:16 UTC
SUSE-SU-2014:0153-1: An update that fixes four vulnerabilities is now available.

Category: security (moderate)
Bug References: 853632
CVE References: CVE-2013-4491,CVE-2013-6414,CVE-2013-6415,CVE-2013-6417
Sources used:
SUSE Linux Enterprise Software Development Kit 11 SP2 (src):    rubygem-actionpack-2_3-2.3.17-0.13.2
Comment 26 Swamp Workflow Management 2014-01-28 18:06:33 UTC
SUSE-SU-2014:0154-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 853632
CVE References: CVE-2013-6415
Sources used:
SUSE Linux Enterprise Software Development Kit 11 SP3 (src):    rubygem-actionpack-2_1-2.1.2-1.14.1
SUSE Linux Enterprise Software Development Kit 11 SP2 (src):    rubygem-actionpack-2_1-2.1.2-1.14.1
Comment 27 Swamp Workflow Management 2014-01-29 14:47:58 UTC
Update released for: rubygem-actionpack-2_3
Products:
SLE-SDK 11-SP3 (i386, ia64, ppc64, s390x, x86_64)
SUSE-CLOUD 2.0 (x86_64)
Comment 28 Swamp Workflow Management 2014-01-29 18:04:26 UTC
SUSE-SU-2014:0154-2: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 853632
CVE References: CVE-2013-6415
Sources used:
SUSE Linux Enterprise Software Development Kit 11 SP3 (src):    rubygem-actionpack-2_3-2.3.17-0.13.1
SUSE Cloud 2.0 (src):    rubygem-actionpack-2_3-2.3.17-0.13.1
Comment 30 Swamp Workflow Management 2014-02-11 10:22:30 UTC
The SWAMPID for this issue is 56198.
This issue was rated as moderate.
Please submit fixed packages until 2014-02-25.
When done, please reassign the bug to security-team@suse.de.
Patchinfo will be handled by security team.
Comment 32 Bernhard Wiedemann 2014-04-14 19:00:53 UTC
This is an autogenerated message for OBS integration:
This bug (853632) was mentioned in
https://build.opensuse.org/request/show/230058 Factory / rubygem-actionpack-3_2
Comment 33 Swamp Workflow Management 2014-05-20 21:55:00 UTC
Update released for: hawk, hawk-debuginfo, hawk-debugsource, hawk-templates
Products:
SLE-DEBUGINFO 11-SP3 (i386, ia64, ppc64, s390x, x86_64)
SLE-HAE 11-SP3 (i386, ia64, ppc64, s390x, x86_64)
Comment 34 Swamp Workflow Management 2014-05-21 01:05:00 UTC
SUSE-SU-2014:0686-1: An update that solves 5 vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 846239,853625,853627,853632,853633,854060
CVE References: CVE-2013-4389,CVE-2013-4491,CVE-2013-6414,CVE-2013-6415,CVE-2013-6417
Sources used:
SUSE Linux Enterprise High Availability Extension 11 SP3 (src):    hawk-0.6.1-0.17.1