Ruby WEBrick Error Pages Handling Cross Site Scripting Vulnerability


Description   A vulnerability has been identified in Ruby, which could be exploited by attackers to execute arbitrary scripting code. This issue is caused by an input validation error in WEBrick when handling and treating error pages as UTF-7, which could be exploited by attackers to cause arbitrary scripting code to be executed by the user's browser in the security context of an affected site.
     
Vulnerable Products   Vulnerable Software:
Ruby version 1.8.6-p399 and priorRuby version 1.8.7-p299 and priorRuby version 1.9.1-p429 and priorRuby version 1.9.2 RC2 and priorRuby version 1.9.3dev
     
Solution   Upgrade to Ruby version 1.8.7 patchlevel 302 or 1.9.1 patchlevel 430 : http://www.ruby-lang.org/en/downloads/Or apply patch :ftp://ftp.ruby-lang.org/pub/misc/webrick-cve-2010-0541.diff
     
CVE   CVE-2010-0541
     
References   http://www.ruby-lang.org/en/news/2010/08/16/xss-in-webrick-cve-2010-0541/
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/42003
https://bugzilla.redhat.com/show_bug.cgi?id=587731
     
Vulnerability Manager Detection   No
     
IPS Protection  
ASQ Engine alarm Available Since
XSS - Prevention - GET : suspicious 'iframe' tag found in URL
3.2.0
XSS - Prevention - POST : suspicious tag with event found in data
3.2.0
XSS - Prevention - GET : suspicious tag with event found in URL
3.2.0
XSS - Prevention - POST : suspicious 'object' tag found in data
3.2.0
XSS - Prevention - GET : suspicious 'applet' tag found in URL
3.2.0
XSS - Prevention - POST : suspicious 'applet' tag found in data
3.2.0
XSS - Prevention - POST : 'location' javascript object found in data
3.2.0
XSS - Phishing : suspicious 'div' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'style' attribute found in URL
3.2.0
XSS - Prevention - POST : javascript code found in data
3.2.0
XSS - Prevention - POST : suspicious 'iframe' tag found in data
3.2.0
XSS - Prevention - POST : code allowing cookie access found in data
3.2.0
XSS - Phishing : suspicious 'a' tag found in URL
3.2.0
XSS - Prevention - GET : cookie access attempt using script language found in URL
3.2.0
XSS - Prevention - GET : suspicious 'embed' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious 'object' tag found in URL
3.2.0
XSS - Phishing : suspicious 'form' tag found in URL
3.2.0
XSS - Prevention - POST : suspicious 'embed' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'style' tag found in data
3.2.0
XSS - Prevention - GET : javascript code found in URL
3.2.0
XSS - Prevention - POST : suspicious 'div' tag found in data
3.2.0
XSS - Prevention - GET : evasion attempt using tag characters encoding in URL
3.2.0
XSS - Prevention - GET : suspicious 'style' tag found in URL
3.2.0
XSS - Phishing : suspicious 'link' tag found in URL
3.2.0
XSS - Prevention - GET : 'script' tag found in URL
3.2.0
XSS - Prevention - POST : 'script' tag found in data
3.2.0
XSS - Prevention - POST : suspicious 'style' attribute found in data
3.2.0
XSS - Prevention - GET : 'location' javascript object found in URL
3.2.0
XSS - Prevention - GET : suspicious 'div' tag found in URL
3.2.0
     


 
 
 
 
 Risk level 
Low 

 Vulnerability First Public Report Date 
2010-08-16 

 Target Type 
Client 

 Possible exploit 
Local & Remote