Lucene search
K

jQuery uploadify v2.1.0 Remote File Upload

🗓️ 22 Jan 2010 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 15 Views

jQuery uploadify v2.1.0 Remote File Upload vulnerability foun

Code

                                                 Exploit Title: jQuery uploadify v2.1.0 Remote File Upload
# Date: 21/01/2010
# Author: k4cp3r/Ablus
# Version: v2.1.0
 
 
 
(uploadify.swf) Actionscript:
 
function setAllowedTypes():void {
    allowedTypes = [];
    if (param.fileDesc && param.fileExt) {
        var fileDescs:Array = param.fileDesc.split('|');
        var fileExts:Array = param.fileExt.split('|');
        for (var n = 0; n < fileDescs.length; n++) {
            allowedTypes.push(new FileFilter(fileDescs[n], fileExts[n]));
        }
    }
}
setAllowedTypes();
 
The FileFilter class is used to indicate what files on the user's system are shown in the file-browsing dialog box that is displayed when the FileReference.browse() method; a user can simply bypass this filter by writing the malicious file name and path on the file browser dialog box rather than navigating and choosing it.
 
Exploit:
 
#1 : upload your file ie (shell.php)
#2 : Retreive the 'folder' parameter passed to uploadify jquery function
     from the head of the page source code ie('folder': 'files/',)
#3 : Navigate to your file ie(http://site/files/shell.php)
 
Fix:
 
A quick fix is to validate your file type inside uploadify.php before saving it
OR to randomize your file names :)
 
 
Greetz to all Al Akhawayn friends
                              

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