Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362507 (CVE-2011-1497) - <dev-ruby/rails-3.0.7: XSS Vulnerability (CVE-2011-1497)
Summary: <dev-ruby/rails-3.0.7: XSS Vulnerability (CVE-2011-1497)
Status: RESOLVED FIXED
Alias: CVE-2011-1497
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: http://weblog.rubyonrails.org/2011/4/...
Whiteboard: ~4 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-07 19:31 UTC by Tim Sammut (RETIRED)
Modified: 2011-04-27 04:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Sammut (RETIRED) gentoo-dev 2011-04-07 19:31:49 UTC
From $URL:

Rails versions 3.0.x prior to 3.0.6 contain an XSS vulnerability. The vulnerability manifests itself via the auto_link method. The auto_link method will automatically mark input strings as "html safe" even if the input is from an unknown origin.

For example:

<%= auto_link(params[:content]) %>

If the "content" parameter contains malicious javascript, that script will be rendered without being escaped.

@ruby, please bump the unstable version to 3.0.6 and drop 3.0.3. Thanks!
Comment 1 Hans de Graaff gentoo-dev Security 2011-04-26 18:08:00 UTC
Rails 3.0.7 is now in the tree.
Comment 2 Tim Sammut (RETIRED) gentoo-dev 2011-04-27 04:09:41 UTC
(In reply to comment #1)
> Rails 3.0.7 is now in the tree.

Great, thank you. Closing noglsa.