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
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 email@example.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.
Secunia Customer Login
Not a customer already?
Learn more about how our market leading Vulnerability Management solutions can help you manage risk and ensure compliance.