Bug 713692 (CVE-2011-2197)

Summary: CVE-2011-2197 rubygem-activesupport: XSS due improper management of safe buffers
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: lutter, mastahnke, mmorsi, sseago, vanmeeuwen+fedora, vondruch
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-28 19:20:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 713694    
Bug Blocks:    

Description Jan Lieskovsky 2011-06-16 09:19:22 UTC
An cross-site scripting (XSS) flaw was found in the way Ruby on Rails
performed management of safe buffers (certain methods could append
unsafe strings to buffers, already containing strings marked as safe
without marking the resulting buffer as unsafe). A remote attack could
use this flaw to conduct XSS attacks by tricking a local user into
visiting a specially-crafted web page.

References:
[1] http://weblog.rubyonrails.org/2011/6/8/potential-xss-vulnerability-in-ruby-on-rails-applications
    (upstream advisory)
[2] http://www.openwall.com/lists/oss-security/2011/06/09/2
    (CVE request)
[3] http://www.openwall.com/lists/oss-security/2011/06/13/9
    (CVE assignment)

Upstream patches:
[4] https://gist.github.com/89d6266cc7875614c5a5
    (for v3.1.0.rc1)
[5] https://gist.github.com/b2ceb626fc2bcdfe497f
    (for v3.0.7)
[6] https://gist.github.com/392235903426322e0414
    (for v2.3.11, specifically the rails_xss plugin)

Comment 1 Jan Lieskovsky 2011-06-16 09:22:44 UTC
This issue affects the version of rubygem-activesupport as shipped with
Fedora release of 15. Please schedule an update.

--

This issue did NOT affect the versions of the rubygem-activesupport package
as shipped with Fedora release of 14 and 13.

This issue did NOT affect the versions of the rubygem-activesupport package
as present within EPEL-6 and EPEL-5 repositories.

Comment 2 Jan Lieskovsky 2011-06-16 09:23:31 UTC
Created rubygem-activesupport tracking bugs for this issue

Affects: fedora-15 [bug 713694]

Comment 3 Vít Ondruch 2012-02-28 19:20:22 UTC
Fixed by https://admin.fedoraproject.org/updates/rubygem-activesupport-3.0.5-3.fc15 update.