Advisory #: 314
Title: Reflected XSS in wordpress plugin attach-gallery-posts v1.6
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/attach-gallery-posts
Downloads: 1661
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: attach-gallery-posts
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./attach-gallery-posts/gallery-post.php: 478: <div id="gallery-1" class="gallery galleryid-<?php echo $_GET['gallery'] ?> gallery-columns-3 gallery-size-thumbnail"> The variable gallery appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./attach-gallery-posts/gallery-post.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/attach-gallery-posts/gallery-post.php?gallery="><script>alert(1);</script><"