Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Potential XSS Vulnerability in Ruby on Rails
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Koziarski  
View profile  
 More options Aug 9 2012, 5:30 pm
From: Michael Koziarski <mich...@koziarski.com>
Date: Fri, 10 Aug 2012 09:30:46 +1200
Local: Thurs, Aug 9 2012 5:30 pm
Subject: Potential XSS Vulnerability in Ruby on Rails

There is a vulnerability in the HTML escaping code in Ruby on Rails.
This vulnerability has been assigned the CVE identifier CVE-2012-3464.

Versions Affected:  All.
Not affected:       None
Fixed Versions:     3.2.8, 3.1.8, 3.0.17

Impact
------
The HTML escaping code in Ruby on Rails does not escape all potentially
dangerous characters.  In particular the code does not escape the single
quote character.  The helpers used in Rails itself never use single
quotes, so most applications are unlikely to be vulnerable, however all
users running an affected release should still upgrade.

Releases
--------
The 3.2.8 and 3.1.8 releases are available at the normal locations.

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

For users on earlier releases or who are unable to upgrade, you can
install the attached file into config/initializers.  This will upgrade
the rails helper to use the Rack::Utils.escape_html helper which does
escape the single quote character.  However the Rack helper also escapes
the '/' character, this is likely to cause test failures if your
application is expecting the values of URLs to be unencoded. These tests
however browsers will correctly decode the values and function as expected.

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.

* 3-0-escape_html.patch - Patch for 3.0 series
* 3-1-escape_html.patch - Patch for 3.1 series
* 3-2-escape_html.patch - Patch for 3.2 series

Please note that only the 3.1.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.

--
Cheers,

Koz

  3-0-escape_html.patch
22K Download

  3-1-escape_html.patch
23K Download

  3-2-escape_html.patch
13K Download

  single_quote_escape_workaround.rb
< 1K Download

  signature.asc
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »