Secunia CSI7
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading
Less critical

Ruby on Rails Cross-Site Scripting and Cross-Site Request Forgery

-

Release Date:  2009-09-04    Last Update:  2009-12-17    Views:  5,288

Secunia Advisory SA36600

Where:

From remote

Impact:

Cross Site Scripting

Solution Status:

Vendor Patch

CVE Reference(s):

Description


Multiple vulnerabilities have been reported in Ruby on Rails, which can be exploited by malicious people to conduct cross-site scripting, cross-site request forgery, and potentially script insertion attacks.

1) Certain specially crafted unicode input is not properly sanitised before being used. This can be exploited to e.g. execute arbitrary HTML and script code in a user's browser session in context of an affected site.

This vulnerability is reported in all 2.x versions prior to 2.2.3 and 2.3.4.

2) A vulnerability is caused by the design of CSRF protection provided by "protect_from_forgery" not performing token verification on requests with certain content types. This can be exploited to conduct cross-site request forgery attacks.

This vulnerability is reported in all 2.1 and 2.2 Pre Release versions.

Note: Additionally, a potential timing issue due to the use of a non-constant time algorithm in the cookie store has been reported.


Solution:
Update to version 2.2.3 or 2.3.4.

Provided and/or discovered by:
1) The vendor credits Brian Mastenbrook.
2) The vendor credits Steve from Coderrr.

Original Advisory:
http://weblog.rubyonrails.org/2009/9/4/xss-vulnerability-in-ruby-on-rails
http://weblog.rubyonrails.org/2009/9/4/timing-weakness-in-ruby-on-rails
http://weblog.rubyonrails.org/2008/11/18/potential-circumvention-of-csrf-protection-in-rails-2-1

Deep Links:
Links available to Secunia VIM customers

Do you have additional information related to this advisory?

Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this information to vuln@secunia.com

Subject: Ruby on Rails Cross-Site Scripting and Cross-Site Request Forgery

No posts yet

-

You must be logged in to post a comment.



 Products Solutions Customers Partner Resources Company
 
 Corporate
Vulnerability Intelligence Manager (VIM)
Corporate Software Inspector (CSI)
Consumer
Personal Software Inspector (PSI)
Online Software Inspector (OSI)
 Industry
Compliance
Technology
Integration
 Customers
Testimonials
 VARS
MSSP
Technology Partners
References
 Factsheets
Reports
Webinars
Events
 About us
Careers
Memberships
Newsroom


 
© 2002-2014 Secunia ApS - Rued Langgaards Vej 8, 4th floor, DK-2300 Copenhagen, Denmark - +45 7020 5144
Terms & Conditions and Copyright - Privacy - Report Vulnerability