SonarSource Sonar Multiple Cross-Site Scripting Vulnerabilities


Description   Multiple vulnerabilities have been discovered in SonarSource Sonar, which can be exploited by malicious people to conduct cross-site scripting attacks.
1) Input passed via multiple parameters to various scripts is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
List of affected scripts and parameters:
<a href="http://[host]/dependencies/index?search
" target="_blank">http://[host]/dependencies/index?search
</a>
<a href="http://[host]/reviews/index?assignee_login&author_login
" target="_blank">http://[host]/reviews/index?assignee_login&author_login
</a>
<a href="http://[host]/api/sources?resource
" target="_blank">http://[host]/api/sources?resource
</a>
2) Input passed via the "fromDate", "toDate", "ageMinDays", and "ageMaxDays" GET parameters to measure/search/ is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
The vulnerabilities are confirmed in version 3.4.1 running on Apache Tomcat version 7.0.37. Other versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
SonarSource Sonar 3.x
     
Solution   No official solution is currently available.
     
CVE  
     
References   devilteam.pl:
http://archives.neohapsis.com/archives/fulldisclosure/2013-02/0077.html
Eelco Maljaars:
http://jira.codehaus.org/browse/SONAR-4269
     
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 - GET : suspicious 'meta' tag found in URL
3.2.0
XSS - Prevention - GET : suspicious tag with event found in URL
3.2.0
XSS - Prevention - GET : suspicious 'applet' tag found in URL
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 - GET : suspicious 'img' tag found in URL
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 - GET : javascript code found in URL
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 - GET : 'location' javascript object found in URL
3.2.0
XSS - Prevention - GET : suspicious 'div' tag found in URL
3.2.0
SQL injection Prevention - GET : Evasion attempt with CAST and EXEC statements
5.0.0
     


 
 
 
 
 Risk level 
Low 

 Vulnerability First Public Report Date 
2013-02-19 

 Target Type 
Server 

 Possible exploit 
Remote