Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAKecwXBQttvv4sJsZTkBT9nS2bQrRff1sFxU68L8iXXdeEngBA@mail.gmail.com>
Date: Thu, 9 Aug 2012 18:25:11 -0300
From: Santiago Pastorino <santiago@...works.com>
To: rubyonrails-security@...glegroups.com, oss-security@...ts.openwall.com
Subject: XSS Vulnerability in strip_tags

XSS Vulnerability in strip_tags

There is a vulnerability in the strip_tags helper of Ruby on Rails
which could allow an attacker to execute arbitrary javascript. This
vulnerability has been assigned the CVE identifier CVE-2012-3465.

Versions Affected:  All.
Not affected:       Applications not using strip_tags
Fixed Versions:     3.2.8, 3.1.8, 3.0.17

Impact
- ------
There is an XSS vulnerability in the strip_tags helper in Ruby on
Rails, the helper doesn't correctly handle malformed html.  As a
result an attacker can execute arbitrary javascript through the use of
specially crafted malformed html.  All users who rely on strip_tags
for XSS protection should upgrade or use the work around immediately.

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

Workarounds
- -----------
For users running earlier releases we have provided a work around,
place the attached file into the config/initializers directory of your
application.

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-strip_tags.patch - Patch for 3.0 series
* 3-1-strip_tags.patch - Patch for 3.1 series
* 3-2-strip_tags.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.

Credits
- -------

Thanks to Marek from Nethemba (www.nethemba.com) for reporting this issue!

---

Santiago Pastorino
WyeWorks Co-founder
http://www.wyeworks.com

Twitter: http://twitter.com/spastorino
Github: http://github.com/spastorino

Download attachment "3-2-strip_tags.patch" of type "application/octet-stream" (1850 bytes)

Download attachment "3-1-strip_tags.patch" of type "application/octet-stream" (1850 bytes)

Download attachment "3-0-strip_tags.patch" of type "application/octet-stream" (1850 bytes)

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.