Ruby on Rails Form Helpers Unicode String Handling Cross Site Scripting Vulnerability

BID:36278

Info

Ruby on Rails Form Helpers Unicode String Handling Cross Site Scripting Vulnerability

Bugtraq ID: 36278
Class: Input Validation Error
CVE: CVE-2009-3009
Remote: Yes
Local: No
Published: Sep 04 2009 12:00AM
Updated: Apr 13 2015 09:35PM
Credit: Brian Mastenbrook
Vulnerable: SuSE SUSE Linux Enterprise 11
S.u.S.E. openSUSE 11.0
Ruby on Rails Ruby on Rails 2.3.3
Ruby on Rails Ruby on Rails 2.3.2
Ruby on Rails Ruby on Rails 2.2.2
Ruby on Rails Ruby on Rails 2.1.1
Ruby on Rails Ruby on Rails 2.1
Ruby on Rails Ruby on Rails 2.0.5
Ruby on Rails Ruby on Rails 2.0.4
Ruby on Rails Ruby on Rails 2.0
Gentoo Linux
Debian Linux 5.0 sparc
Debian Linux 5.0 s/390
Debian Linux 5.0 powerpc
Debian Linux 5.0 mipsel
Debian Linux 5.0 mips
Debian Linux 5.0 m68k
Debian Linux 5.0 ia-64
Debian Linux 5.0 ia-32
Debian Linux 5.0 hppa
Debian Linux 5.0 armel
Debian Linux 5.0 arm
Debian Linux 5.0 amd64
Debian Linux 5.0 alpha
Debian Linux 5.0
Apple Mac OS X Server 10.6.2
Apple Mac OS X Server 10.6.1
Apple Mac OS X Server 10.5.8
Apple Mac OS X Server 10.6
Apple Mac OS X 10.6.2
Apple Mac OS X 10.6.1
Apple Mac OS X 10.5.8
Apple Mac OS X 10.6
Not Vulnerable: Ruby on Rails Ruby on Rails 2.3.4
Ruby on Rails Ruby on Rails 2.2.3

Discussion

Ruby on Rails Form Helpers Unicode String Handling Cross Site Scripting Vulnerability

Ruby on Rails is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input.

An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may let the attacker steal cookie-based authentication credentials and launch other attacks

NOTE: The vendor has reported that this issue may also lead to HTML-injection attacks in some configurations.

Ruby on Rails 2.x.x (prior to 2.3.4 and 2.2.3) are affected.

Exploit / POC

Ruby on Rails Form Helpers Unicode String Handling Cross Site Scripting Vulnerability

Attackers can exploit this issue by enticing an unsuspecting victim into following a malicious URI.

Solution / Fix

Ruby on Rails Form Helpers Unicode String Handling Cross Site Scripting Vulnerability

Solution:
Updates are available. Please see the references for more information.


Debian Linux 5.0 ia-64

Apple Mac OS X Server 10.6

Debian Linux 5.0 alpha

Debian Linux 5.0 ia-32

Debian Linux 5.0 s/390

Debian Linux 5.0 mipsel

Debian Linux 5.0 hppa

Debian Linux 5.0 m68k

Debian Linux 5.0 arm

Debian Linux 5.0 armel

Debian Linux 5.0

Apple Mac OS X 10.6

Debian Linux 5.0 amd64

Debian Linux 5.0 mips

Debian Linux 5.0 powerpc

Debian Linux 5.0 sparc

Apple Mac OS X Server 10.5.8

Apple Mac OS X 10.5.8

Apple Mac OS X 10.6.1

Apple Mac OS X Server 10.6.1

Apple Mac OS X Server 10.6.2

Apple Mac OS X 10.6.2

References

Ruby on Rails Form Helpers Unicode String Handling Cross Site Scripting Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report