Document Title: =============== IPMap v2.5 iPad iPhone - File Upload Web Vulnerabilities References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=866 Release Date: ============= 2013-02-17 Vulnerability Laboratory ID (VL-ID): ==================================== 866 Common Vulnerability Scoring System: ==================================== 6.3 Product & Service Introduction: =============================== IPMap - IP Address Lookup Details & HTTP Wireless File Sharing with latest WorldWide IP database & FREE Monthly update. Accuracy: Over 99.8% on a country level and 83% on a city level for the US within a 25 mile radius. Features: Auto Detect & Lookup Your Real IP address IP address Hostname IP address Country Code IP address Country Name IP address Region IP address Region Name IP address City IP address Postal Code IP address Latitude IP address Longitude IP address Metro Code IP address Area Code IP location Map HTTP Wireless File Sharing iTunes File Sync Web Upload File Support Customizable Background from your Photos Album (Copy of the Homepage: https://itunes.apple.com/us/app/ipmap-ip-address-lookup-details/id416041538 ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Research Team discovered an arbitrary file upload vulnerability in the mobile IPMap v2.5 app for the apple ipad & iphone. Vulnerability Disclosure Timeline: ================================== 2013-02-18: Public Disclosure Discovery Status: ================= Published Affected Product(s): ==================== Apple AppStore Product: IPMap - iPad iPhone 2.5 Exploitation Technique: ======================= Remote Severity Level: =============== Critical Technical Details & Description: ================================ A local file include and arbitrary file upload web vulnerability via POST request method is detected in the mobile IPMap v2.5 app for the apple ipad & iphone. The vulnerability allows remote attackers via POST method to inject local app webserver folders to request unauthorized local webserver files. 1.1 The main vulnerbility is located in the upload file script of the webserver (http://192.168.0.10:6123/) when processing to load a manipulated filename via POST request method. The execution of the injected path or file request will occur when the attacker is watching the file index listing of the wifi web application web-server. 1.2 Remote attackers can also unauthorized implement mobile webshells by using multiple file extensions (pentest.php.js.gif) when processing to upload (submit) via POST request method. The attacker uploads a file with a double extension or multiple extensions and access the file in the second step via directory webserver dir listing to compromise the apple iphone or ipad. Exploitation of the local file include web vulnerability does not require user interaction and also no privileged user account. Successful exploitation of the web vulnerabilities results in app/service manipulation and ipad or iphone compromise via file include or unauthorized file (webshell) upload attacks. Vulnerable Application(s): [+] WiFilet v1.2 - ITunes or AppStore (Apple) Vulnerable Module(s): [+] File Upload via Submit (Web Server) [Remote] Vulnerable Parameter(s): [+] file > filename Affected Module(s): [+] File Dir Index - Listing Proof of Concept (PoC): ======================= Both vulnerabilities can be exploited by remote attackers without privileged application user account and also without required user interaction. For demonstration or reproduce ... 1.1 PoC: (POST) -----------------------------307341202725627 Content-Disposition: form-data; name="file"; filename="../../../../cmd>home>tmp%00<'.png" Content-Type: image/png ÿØÿà Review: File Dir Listing IPMap

IPMap

The following files are hosted live from the iPhone's Docs folder.

File NameFile Info
%20%20%20%20&">

1.2 PoC: (POST) -----------------------------307341202725627 Content-Disposition: form-data; name="file"; filename="pentest.php.js.html.htm.xml.png" Content-Type: image/gif Reference(s): http://192.168.0.10:6123/ Security Risk: ============== The security risk of the arbitrary file upload web vulnerability via POST request method is estimated as critical. Credits & Authors: ================== Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (bkm@vulnerability-lab.com) Disclaimer & Information: ========================= 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.vulnerability-lab.com/register Contact: admin@vulnerability-lab.com - support@vulnerability-lab.com - research@vulnerability-lab.com Section: video.vulnerability-lab.com - forum.vulnerability-lab.com - news.vulnerability-lab.com 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 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, sourcecode, 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 (admin@vulnerability-lab.com or support@vulnerability-lab.com) to get a permission. Copyright © 2013 | Vulnerability Laboratory