From e02d1c2d9b24b7170c353c8d60067d00e765baed Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Wed, 5 Jul 2023 20:35:12 +0000 Subject: [PATCH] Publish GHSA-m46p-ggm5-5j83 --- .../GHSA-m46p-ggm5-5j83.json | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/advisories/github-reviewed/2017/10/GHSA-m46p-ggm5-5j83/GHSA-m46p-ggm5-5j83.json b/advisories/github-reviewed/2017/10/GHSA-m46p-ggm5-5j83/GHSA-m46p-ggm5-5j83.json index 2c07b1bb590..f8faa661a14 100644 --- a/advisories/github-reviewed/2017/10/GHSA-m46p-ggm5-5j83/GHSA-m46p-ggm5-5j83.json +++ b/advisories/github-reviewed/2017/10/GHSA-m46p-ggm5-5j83/GHSA-m46p-ggm5-5j83.json @@ -1,13 +1,13 @@ { "schema_version": "1.4.0", "id": "GHSA-m46p-ggm5-5j83", - "modified": "2023-01-23T17:56:47Z", + "modified": "2023-07-05T20:33:59Z", "published": "2017-10-24T18:33:36Z", "aliases": [ "CVE-2014-0081" ], "summary": "Rails vulnerable to Cross-site Scripting", - "details": "Multiple cross-site scripting (XSS) vulnerabilities in `actionview/lib/action_view/helpers/number_helper.rb` in Ruby on Rails before 3.2.17, 4.0.x before 4.0.3, and 4.1.x before 4.1.0.beta2 allow remote attackers to inject arbitrary web script or HTML via the (1) format, (2) negative_format, or (3) units parameter to the (a) number_to_currency, (b) number_to_percentage, or (c) number_to_human helper.", + "details": "There is an XSS vulnerability in the `number_to_currency`, `number_to_percentage` and `number_to_human` helpers in Ruby on Rails. This vulnerability has been assigned the CVE identifier CVE-2014-0081.\n\nVersions Affected: All.\nFixed Versions: 4.1.0.beta2, 4.0.3, 3.2.17.\n\nImpact\n------\nThese helpers allows users to nicely format a numeric value. Some of the parameters to the helper (format, negative_format and units) are not escaped correctly. Applications which pass user controlled data as one of these parameters are vulnerable to an XSS attack.\n\nAll users passing user controlled data to these parameters of the number helpers should either upgrade or use one of the workarounds immediately.\n\nReleases\n--------\nThe 4.1.0.rc1, 4.0.3 and 3.2.17 releases are available at the normal locations.\n\nWorkarounds\n-----------\n\nThe workaround for this issue is to escape the value passed to the parameter.\nFor example, replace code like this:\n\n```ruby\n<%= number_to_currency(1.02, format: params[:format]) %>\n```\n\nWith code like this\n\n```ruby\n<%= number_to_currency(1.02, format: h(params[:format])) %>\n```\n\nPatches\n-------\nTo 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.\n\n* 4-1-beta-number_helpers_xss.patch - Patch for 4.1-beta series\n* 4-0-number_helpers_xss.patch - Patch for 4.0 series\n* 3-2-number_helpers_xss.patch - Patch for 3.2 series\n\nPlease 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.\n\nCredits\n-------\n\nThanks to Kevin Reintjes for reporting the issue to us.\n\n-- \nAaron Patterson\nhttp://tenderlovemaking.com/\n", "severity": [ ], @@ -110,10 +110,6 @@ "type": "WEB", "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2014-0081.yml" }, - { - "type": "WEB", - "url": "https://groups.google.com/forum/message/raw?msg=rubyonrails-security/tfp6gZCtzr4/j8LUHmu7fIEJ" - }, { "type": "WEB", "url": "https://web.archive.org/web/20140911141416/http://www.securitytracker.com/id/1029782" @@ -122,6 +118,10 @@ "type": "WEB", "url": "https://web.archive.org/web/20170307202606/http://www.securityfocus.com/bid/65647" }, + { + "type": "WEB", + "url": "https://web.archive.org/web/20201207045136/https://groups.google.com/forum/message/raw?msg=rubyonrails-security/tfp6gZCtzr4/j8LUHmu7fIEJ" + }, { "type": "WEB", "url": "http://lists.opensuse.org/opensuse-updates/2014-02/msg00081.html" @@ -137,14 +137,6 @@ { "type": "WEB", "url": "http://rhn.redhat.com/errata/RHSA-2014-0306.html" - }, - { - "type": "WEB", - "url": "http://www.securityfocus.com/bid/65647" - }, - { - "type": "WEB", - "url": "http://www.securitytracker.com/id/1029782" } ], "database_specific": {