WiFi Drive CR v1.0 iOS - Persistent Filename Dir List Vulnerability
Files can be uploaded with any browser. Start the WiFi Drive web server from application and connect to it using any browser. Use the iPod/iPhone`s/iPad`s available disk space to carry any files. Use your iPhone as a normal shared network drive!
(Copy of the Homepage: https://itunes.apple.com/us/app/wifi-drive-+-cr-my-external/id979129415 )
The Vulnerability Laboratory Core Research Team discovered an application-side exception web vulnerability in the official WiFi Drive + CR v1.0 iOS mobile web-application.
2015-09-23: Public Disclosure (Vulnerability Laboratory)
DONG JOO CHO Product: WiFi Drive + CR - Mobile WiFi (Web-Application) 1.0
A persistent input validation web vulnerability has been discovered in the official WiFi Drive + CR v1.0 iOS mobile web-application. The vulnerability allows remote attacker to inject malicious persistent script codes to the application-side of the mobile application.
The vulnerability is located in the filename value of the upload files module POST method request. Remote attackers can manipulate the filename validation in the POST method request to trick the application in an execution of script codes via index - exception-handling. After processing to inject the exception of the file validation occurs and redisplays the injected context. Thus results in a final application-side post inject vulnerability. The attack vector of the issue is located on the application-side and the request method to inject the payload is POST.
The security risk of the application-side web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.6. Exploitation of the application-side web vulnerability requires no privilege web-application user account and only low or medium user interaction. Successful exploitation of the vulnerabilities results in persistent phishing, session hijacking, persistent external redirect to malicious sources and application-side manipulation of affected or connected module context.
Request Method(s): [+] POST
Vulnerable Module(s): [+] Upload Files
Vulnerable Parameter(s): [+] filename
Affected Module(s): [+] Index - Exception handling (File Validation > Upload)
The remote vulnerability can be exploited by remote attackers without privilege web-application user account and with low user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.
PoC: localhost (Index) <div class="container"> <div class="page-header"> <h1>WiFi Drive</h1></div> <p>Drag & drop files on this window or use the "Upload Files…" button to upload new files.</p> <div id="alerts"> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert">?</button> <strong>Internal Server Error: </strong>Failed uploading "[PERSISTENT SCRIPT CODE INJECT VULNERABILITY!]2.png" to "null"</div> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert">?</button> <strong>Internal Server Error: </strong>Failed uploading "3.png" to "null" </div> <div class="alert alert-danger alert-dismissable"> <button type="button" class="close" data-dismiss="alert">?</button> <strong>Internal Server Error: </strong>Failed uploading "4.png" to "null" </div> </div> <div class="btn-toolbar"> <button type="button" class="btn btn-primary fileinput-button" id="upload-file"> <span class="glyphicon glyphicon-upload"></span> Upload Files… <input id="fileupload" name="files" multiple="" type="file"> </button> <button type="button" class="btn btn-success" id="create-folder"> <span class="glyphicon glyphicon-folder-close"></span> Create Folder… </button> <button type="button" class="btn btn-default" id="reload"> <span class="glyphicon glyphicon-refresh"></span> Refresh </button> </div> <div style="display: none;" class="panel panel-default uploading"> <div class="panel-heading">File Uploads in Progress</div> <table class="table table-striped"><tbody id="uploads"></tbody></table> </div> <div class="panel panel-default"> <div class="panel-heading"> <ol class="breadcrumb" id="path"></ol> </div> <table class="table table-striped"><tbody id="listing"></tbody></table> </div> <p class="footer">WiFi Drive 1.0</p> </div>
The vulnerability can be patched by a secure encode and parse of the vulnerability filename value. Restrict the input and disallow special chars but also prepare to encode the output location in the exception that displays the input context.
The security risk of the persistent input validation web vulnerability in the exception-handling of the interface is estimated as medium. (CVSS 3.6
Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (firstname.lastname@example.org) [www.vulnerability-lab.com]
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases or trade with fraud/stolen material.
Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com Contact: email@example.com - firstname.lastname@example.org - email@example.com Section: magazine.vulnerability-db.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register/
Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact (firstname.lastname@example.org or email@example.com) to get a permission.
Copyright © 2015 | Vulnerability Laboratory - [Evolution Security GmbH]™
-- VULNERABILITY LABORATORY - RESEARCH TEAM SERVICE: www.vulnerability-lab.com CONTACT: firstname.lastname@example.org PGP KEY: http://email@example.com%280x198E9928%29.txt