WordPress Count Per Day Plugin Multiple Cross-Site Scripting Vulnerabilities


Description   Stefan Schurtz has discovered some vulnerabilities in the Count Per Day plugin for WordPress, which can be exploited by malicious people to conduct cross-site scripting attacks.
Input passed via multiple parameters to wp-content/plugins/count-per-day/userperspan.php 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]/wp-content/plugins/count-per-day/userperspan.php?page
" target="_blank">http://[host]/wp-content/plugins...r-day/userperspan.php?page
</a>
<a href="http://[host]/wp-content/plugins/count-per-day/userperspan.php?datemin
" target="_blank">http://[host]/wp-content/plugins...ay/userperspan.php?datemin
</a>
<a href="http://[host]/wp-content/plugins/count-per-day/userperspan.php?datemax
" target="_blank">http://[host]/wp-content/plugins...ay/userperspan.php?datemax
</a>
The vulnerabilities are confirmed in version 3.1.1. Prior versions may also be affected.
     
Vulnerable Products   Vulnerable Software:
Count Per Day 3.x (plugin for WordPress)
     
Solution   Update to version 3.2.
     
CVE   CVE-2012-3434
     
References   Count Per Day:
http://wordpress.org/extend/plugins/count-per-day/changelog/
http://plugins.trac.wordpress.org/changeset/571926/count-per-day#file22
Stefan Schurtz:
http://www.darksecurity.de/advisories/2012/SSCHADV2012-015.txt
     
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
     


 
 
 
 
 Risk level 
Low 

 Vulnerability First Public Report Date 
2012-07-02 

 Target Type 
Server 

 Possible exploit 
Remote