|
| 1 | +Document Title: |
| 2 | +=============== |
| 3 | +WK UDID v1.0.1 iOS - Command Inject Vulnerability |
| 4 | + |
| 5 | + |
| 6 | +References (Source): |
| 7 | +==================== |
| 8 | +http://www.vulnerability-lab.com/get_content.php?id=1539 |
| 9 | + |
| 10 | + |
| 11 | +Release Date: |
| 12 | +============= |
| 13 | +2015-07-01 |
| 14 | + |
| 15 | + |
| 16 | +Vulnerability Laboratory ID (VL-ID): |
| 17 | +==================================== |
| 18 | +1539 |
| 19 | + |
| 20 | + |
| 21 | +Common Vulnerability Scoring System: |
| 22 | +==================================== |
| 23 | +5.6 |
| 24 | + |
| 25 | + |
| 26 | +Product & Service Introduction: |
| 27 | +=============================== |
| 28 | +This app offers the opportunity to read device-specific information from your iPhone, iPad or iPod touch. The desired information can be |
| 29 | +selected and sent via email to a recipient of your choice or it can be copied to the clipboard for later use. You can get information about |
| 30 | +the unique identifier (UDID), the model, the name and the operating system of your device. |
| 31 | + |
| 32 | +(Copy of the Homepage https://itunes.apple.com/us/app/wk-udid/id392624227 ) |
| 33 | + |
| 34 | + |
| 35 | +Abstract Advisory Information: |
| 36 | +============================== |
| 37 | +The Vulnerability Laboratory Research team discovered a local command inject web vulnerability in the official WK UDID v1.0.1 iOS mobile web-application. |
| 38 | + |
| 39 | + |
| 40 | +Vulnerability Disclosure Timeline: |
| 41 | +================================== |
| 42 | +2015-07-01: Public Disclosure (Vulnerability Laboratory) |
| 43 | + |
| 44 | + |
| 45 | +Discovery Status: |
| 46 | +================= |
| 47 | +Published |
| 48 | + |
| 49 | + |
| 50 | +Affected Product(s): |
| 51 | +==================== |
| 52 | +WK EDV GmbH |
| 53 | +Product: WK UDID - iOS Mobile Web Application 1.0.1 |
| 54 | + |
| 55 | + |
| 56 | +Exploitation Technique: |
| 57 | +======================= |
| 58 | +Local |
| 59 | + |
| 60 | + |
| 61 | +Severity Level: |
| 62 | +=============== |
| 63 | +Medium |
| 64 | + |
| 65 | + |
| 66 | +Technical Details & Description: |
| 67 | +================================ |
| 68 | +A local command inject web vulnerability has been discovered in the official WK UDID v1.0.1 iOS mobile web-application. |
| 69 | +The vulnerability allows to inject malicious script codes to the application-side of the vulnerable mobile app. |
| 70 | + |
| 71 | +The vulnerability is located in the device name value of the send by mail function. Local attackers are able to manipulate the name value |
| 72 | +of the device to compromise the mail function of the wkudid mobile app. The html encoding is broken in the send by mail export function. |
| 73 | +Local attackers are able to manipulate the device name id to compromise the application internal validation in send emails. The attack vector |
| 74 | +of the vulnerability is server-side and the injection point is the device name information settings. |
| 75 | + |
| 76 | +The security risk of the local commandpath inject vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 5.6. |
| 77 | +Exploitation of the commandpath inject vulnerability requires a low privilege androidios device account with restricted access and no user interaction. |
| 78 | +Successful exploitation of the vulnerability results in unauthorized execution of system specific commands and unauthorized path value requests to |
| 79 | +compromise the mobile iOS application and connected device components. |
| 80 | + |
| 81 | +Vulnerable Module(s) |
| 82 | + [+] Device - Settings - Information |
| 83 | + |
| 84 | +Vulnerable Parameter(s) |
| 85 | + [+] device name |
| 86 | + |
| 87 | +Affected Module(s) |
| 88 | + [+] WKUDID - Mail |
| 89 | + |
| 90 | + |
| 91 | +Proof of Concept (PoC): |
| 92 | +======================= |
| 93 | +The local command inject web vulnerability can be exploited by local attackers with low privilege device user account and without user interaction. |
| 94 | +For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue. |
| 95 | + |
| 96 | +Manual steps to reproduce the vulnerability ... |
| 97 | +1. Start the iOS device |
| 98 | +2. Open the settings module |
| 99 | +3. Change the name to the local command injection payload |
| 100 | +4. Save the settings and start the application wkudid |
| 101 | +5. Send the details by mail |
| 102 | +6. Review the arrival inbox |
| 103 | +7. The execution point is the xml and header location with the device name value |
| 104 | +8. Successful reproduce of the local command inject security vulnerability! |
| 105 | + |
| 106 | + |
| 107 | +PoC Device ID - Email |
| 108 | + |
| 109 | +<div>Identifier (UDID): FFFFFFFFC0463E7B3E5D46A88EDF4194C74B27D1 |
| 110 | +<br>Model: iPad<br>Name: bkm337>"<./[LOCAL COMMAND INJECT VULNERABILITY VIA DEVICE NAME VALUE!]">%20<gt;<BR> |
| 111 | +System Name: iPhone OS<BR>System Version: 8.3<BR>Total Memory (RAM): 987.98 MB<BR> |
| 112 | +Free Memory: 19.06 MB<BR>Total Storage: 27.19 GB<BR>Free Storage: 0.70 GB<BR> |
| 113 | +CPU Frequency: an error occured<BR>Network: WiFi<BR>Wi-Fi: 02:00:00:00:00:00<BR> |
| 114 | +IP Address: 192.168.2.104<BR>Carrier: not available<BR></iframe></div> |
| 115 | + |
| 116 | + |
| 117 | +Solution - Fix & Patch: |
| 118 | +======================= |
| 119 | +The vulnerability can be patched by a secure parse and encode of the vulnerable Device name value. Restrict the input and encode the output in the |
| 120 | +vulnerable generated html file. Disallow script code values in the html generated file type to prevent further command injection attacks. |
| 121 | + |
| 122 | + |
| 123 | +Security Risk: |
| 124 | +============== |
| 125 | +The security rsik of the local command inject web vulnerability in the device name value is estimated as medium. (CVSS 5.6) |
| 126 | + |
| 127 | + |
| 128 | +Credits & Authors: |
| 129 | +================== |
| 130 | +Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (bkm@evolution-sec.com) [www.vulnerability-lab.com] |
| 131 | + |
| 132 | + |
| 133 | +Disclaimer & Information: |
| 134 | +========================= |
| 135 | +The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed |
| 136 | +or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable |
| 137 | +in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab |
| 138 | +or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for |
| 139 | +consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses, |
| 140 | +policies, deface websites, hack into databases or trade with fraud/stolen material. |
| 141 | + |
| 142 | +Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com |
| 143 | +Contact: admin@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com |
| 144 | +Section: magazine.vulnerability-db.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact |
| 145 | +Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab |
| 146 | +Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php |
| 147 | +Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register/ |
| 148 | + |
| 149 | +Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to |
| 150 | +electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by |
| 151 | +Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website |
| 152 | +is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact |
| 153 | +(admin@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission. |
| 154 | + |
| 155 | + Copyright © 2015 | Vulnerability Laboratory - [Evolution Security GmbH]™ |
| 156 | + |
| 157 | +-- |
| 158 | +VULNERABILITY LABORATORY - RESEARCH TEAM |
| 159 | +SERVICE: www.vulnerability-lab.com |
| 160 | +CONTACT: research@vulnerability-lab.com |
| 161 | +PGP KEY: http://www.vulnerability-lab.com/keys/admin@vulnerability-lab.com%280x198E9928%29.txt |
| 162 | + |
| 163 | + |
0 commit comments