|
| 1 | +Document Title: |
| 2 | +=============== |
| 3 | +Photo Transfer Wifi 1.4.4 iOS - Multiple Web Vulnerabilities |
| 4 | + |
| 5 | + |
| 6 | +References (Source): |
| 7 | +==================== |
| 8 | +http://www.vulnerability-lab.com/get_content.php?id=1153 |
| 9 | + |
| 10 | + |
| 11 | +Release Date: |
| 12 | +============= |
| 13 | +2013-12-02 |
| 14 | + |
| 15 | + |
| 16 | +Vulnerability Laboratory ID (VL-ID): |
| 17 | +==================================== |
| 18 | +1153 |
| 19 | + |
| 20 | + |
| 21 | +Common Vulnerability Scoring System: |
| 22 | +==================================== |
| 23 | +9.1 |
| 24 | + |
| 25 | + |
| 26 | +Product & Service Introduction: |
| 27 | +=============================== |
| 28 | +nsfer WiFi app is a straight and effortless way to transfer your photos and videos between iPhones, iPads |
| 29 | +and computers. Forget about hassle with transferring your media via iTunes, iCloud. Features: |
| 30 | + |
| 31 | + - Send photos and videos from iPhone or iPod Touch to other iPhone with a simple drag and drop |
| 32 | + - Transfer media from your PC or Mac to iPhone or iPod Touch |
| 33 | + - Download photos and videos to your Computer from iPhone, iPod Touch, iPad and iPad Mini |
| 34 | + - Copy photos and videos from Computer to iPad or iPad Mini |
| 35 | + - Import HD videos to iPad or iPad Mini from iPhone |
| 36 | + - Exchange photos and videos between iPads over your local WiFi network |
| 37 | + - Make your pictures accessible from your iPhone or iPod Touch to other users on the same WiFi network |
| 38 | + - Share you media files on iPad or iPad Mini |
| 39 | + - Browse photos and videos shared on iDevices from any PC or Mac |
| 40 | + - Download shared media to your Computer |
| 41 | + - Receive photos and videos to iPhone or iPod Touch from iPad |
| 42 | + - Preview shared photos and videos in any browser |
| 43 | + - Use browser to download shared photos and videos from iDevices |
| 44 | + - Send photos and videos from any browser to your iPhone or iPad |
| 45 | + |
| 46 | +(Copy of the Homepage: https://itunes.apple.com/en/app/photo-transfer-wifi-quickly/id674978018 ) |
| 47 | + |
| 48 | + |
| 49 | +Abstract Advisory Information: |
| 50 | +============================== |
| 51 | +The Vulnerability Laboratory Research Team discovered multiple web vulnerabilities in the Photo Transfer WiFi v1.4.4 for apple iOS. |
| 52 | + |
| 53 | + |
| 54 | +Vulnerability Disclosure Timeline: |
| 55 | +================================== |
| 56 | +2013-12-02: Public Disclosure (Vulnerability Laboratory) |
| 57 | + |
| 58 | + |
| 59 | +Discovery Status: |
| 60 | +================= |
| 61 | +Published |
| 62 | + |
| 63 | + |
| 64 | +Affected Product(s): |
| 65 | +==================== |
| 66 | +Simplex Solutions Inc |
| 67 | +Product: Photo Transfer WiFi 1.4.4 |
| 68 | + |
| 69 | + |
| 70 | +Exploitation Technique: |
| 71 | +======================= |
| 72 | +Remote |
| 73 | + |
| 74 | + |
| 75 | +Severity Level: |
| 76 | +=============== |
| 77 | +Critical |
| 78 | + |
| 79 | + |
| 80 | +Technical Details & Description: |
| 81 | +================================ |
| 82 | +1.1 |
| 83 | +2 local command/path injection web vulnerabilities has been discovered in the Simplex Solutions Inc Photo Transfer WiFi v1.4.4 for apple iOS. |
| 84 | +The remote web vulnerability allows to inject local commands via vulnerable system values to compromise the apple mobile iOS application. |
| 85 | + |
| 86 | +The vulnerability is located in the in the device name value of the index and sub category list module. Local attackers are |
| 87 | +able to inject own script codes as iOS device name. The execute of the injected script code occurs in 2 different section with |
| 88 | +persistent attack vector. The first section is the wifi app interface login were the application is listed. The secound execute |
| 89 | +occurs after the login in the smallheader interface section.The security risk of the command/path inject vulnerabilities are |
| 90 | +estimated as high(+) with a cvss (common vulnerability scoring system) count of 7.2(+)|(-)7.3. |
| 91 | + |
| 92 | +Exploitation of the command/path inject vulnerability requires a local low privileged iOS device account with restricted access |
| 93 | +and no direct user interaction. Successful exploitation of the vulnerability results in unauthorized execute of system specific |
| 94 | +commands or unauthorized path requests. |
| 95 | + |
| 96 | +Vulnerable Application(s): |
| 97 | + [+] Photo Transfer Wifi v1.4.4 |
| 98 | + |
| 99 | +Vulnerable Parameter(s): |
| 100 | + [+] devicename |
| 101 | + |
| 102 | +Affected Module(s): |
| 103 | + [+] Login - Device Name |
| 104 | + [+] Index - Device Name |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | +1.2 |
| 109 | +A persistent input validation web vulnerability has been discovered in the Simplex Solutions Inc Photo Transfer WiFi v1.4.4 for apple iOS. |
| 110 | +The validation web vulnerability allows remote attackers to inject own malicious script codes by a persistent (application-side) attack vector. |
| 111 | + |
| 112 | +The persistent input validation vulnerability is located in the album name value of the mobile application. Remote attackers and local low |
| 113 | +privileged user accounts can inject own malicious persistent script codes as album name. The execute occurs in the main index album name list |
| 114 | +and the sub category list. By exchange of the information the issue can be exploited by remote attackers by a low user interaction sync. |
| 115 | +The security risk of the persistent vulnerabilities are estimated as medium(+) with a cvss (common vulnerability scoring system) count of 4.6(+). |
| 116 | + |
| 117 | +Exploitation of the persistent web vulnerability requires no or a local low privileged mobile application account and low user interaction. |
| 118 | +Successful exploitation of the vulnerability can lead to persistent session hijacking (customers), account steal via persistent web attacks, |
| 119 | +persistent phishing or persistent module context manipulation. |
| 120 | + |
| 121 | + |
| 122 | +Vulnerable Application(s): |
| 123 | + [+] Photo Transfer Wifi v1.4.4 |
| 124 | + |
| 125 | +Vulnerable Parameter(s): |
| 126 | + [+] albumname |
| 127 | + |
| 128 | +Affected Module(s): |
| 129 | + [+] Index - Album Name List |
| 130 | + |
| 131 | + |
| 132 | +Proof of Concept (PoC): |
| 133 | +======================= |
| 134 | +1.1 |
| 135 | +The local command/path inject web vulnerability via devicename value can be exploited by local low privileged or restricted device |
| 136 | +user accounts & no user interaction. For security demonstration or to reproduce the command/path mobile app vulnerability follow |
| 137 | +the provided information and steps below. |
| 138 | + |
| 139 | + |
| 140 | +Manual steps to exploit the vulnerability ... |
| 141 | + |
| 142 | +1. Install the photo transfer wifi iOS mobile application |
| 143 | +2. Open the iOS settings and switch to the info > device name input |
| 144 | +3. Include your name and the payload to execute an app command or request a local device path (">%20<x src=\..\<../var/mobile/Library/[APP PATH]/">) |
| 145 | +4. Save the input and open the photo transfer wifi app |
| 146 | +Note: After the startup the web-server is available |
| 147 | +5. Open the url following url to the web interface of the mobile application (http://localhost:8080) |
| 148 | +6. The first execute occurs in the error message with the devicename value of the login |
| 149 | +7. Successful reproduce of the first vulnerability done ... let us watch now the secound issue of the devicename after the login |
| 150 | +8. Exclude in the iOS device settings the payload, save and open the service via web-server http request |
| 151 | +9. Login to the interface with the default username |
| 152 | +10. The execute of the command or path request occurs after the login in the devicename value |
| 153 | +11. Successful reproduce of the secound vulnerability done! |
| 154 | + |
| 155 | + |
| 156 | +PoC: Login > devicepreview - devicename |
| 157 | + |
| 158 | + <div class="errormessage"> |
| 159 | + Invalid password. Try again! |
| 160 | + </div> |
| 161 | + <div class="youconnect"> |
| 162 | + You are now connecting to |
| 163 | + </div> |
| 164 | + <div class="devicepreview"> |
| 165 | + <div class="devicepreviewInternal"> |
| 166 | + <p class="devicename"> |
| 167 | + device bkm>"<<>"<x src="login_incorrect_files/">%20<x src=\..\<../var/mobile/Library/[APP PATH]/"> |
| 168 | + </p> |
| 169 | + <div class='deviceico'> |
| 170 | + <img src="/devices_ico/iPadB.png"> |
| 171 | + </div> |
| 172 | + </div> |
| 173 | + </div> |
| 174 | + |
| 175 | + <form method="POST" action="/login"> |
| 176 | + <div class='forminputs'> |
| 177 | + <input type="password" name="password" class='passinput' placeholder='Enter Password' id="login_input"> |
| 178 | + <input type="submit" value="Connect" class='passsubmit'> |
| 179 | + </div> |
| 180 | + </form> |
| 181 | + |
| 182 | +Note: The injected command or path request execute occurs in the login and error message module. |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | +PoC: Index - smallheader > devicename |
| 187 | + |
| 188 | + <body> |
| 189 | + |
| 190 | + <div class="smallheader"> |
| 191 | + <img src="web/logo_small.png" style="float:left"> |
| 192 | + <div class="devicepreview" style="float:right"> |
| 193 | + <div class="devicepreviewInternal"> |
| 194 | + <p class="devicename"> |
| 195 | + device bkm ">%20<x src=\..\<../var/mobile/Library/[APP PATH]/> |
| 196 | + </p> |
| 197 | + <div class="deviceico"> |
| 198 | + <img src="/devices_ico/iPadB.png"> |
| 199 | + </div> |
| 200 | + </div> |
| 201 | + </div> |
| 202 | + </div> |
| 203 | + |
| 204 | +Note: The secound inject/execute is located after the login in the `smallheader` class were the devicename will be visible. |
| 205 | + |
| 206 | +Reference(s): |
| 207 | +http://localhost:8080/ |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | +1.2 |
| 212 | +The persistent input validation web vulnerability can be exploited by remote attackers with low privileged web-application user account |
| 213 | +and low user interaction. For security demonstration or to reproduce the vulnerability follow the information and steps below. |
| 214 | + |
| 215 | + |
| 216 | +Manual steps to reproduce the vulnerability ... |
| 217 | + |
| 218 | +1. Install the photo transfer wifi mobile app |
| 219 | +2. Open the iOS photo app (default software) |
| 220 | +3. Add a new album and inject into the album name your own script code (payload) |
| 221 | +4. Open the photo transfer wifi mobile app |
| 222 | +5. Go to the local web-server url (localhost:8080) |
| 223 | +Note: After the login to the interface the index displays an album name listing |
| 224 | +6. The script code execute occurs with persistent attack vector in the index album name list context |
| 225 | +7. Successful reproduce of the vulnerability done! |
| 226 | + |
| 227 | + |
| 228 | +PoC: Gallery > Album - albumtitle |
| 229 | + |
| 230 | +<div class="albumtitle"> |
| 231 | + <><[PERSISTENT INJECTED SCRIPT CODE IN ALBUM NAME VALUE VIA POST METHOD INJECT!]> |
| 232 | + </div> |
| 233 | + <div class="albumsize"> |
| 234 | + 3 Items |
| 235 | + </div> |
| 236 | + </a><div class="ziploaddiv"><a href="http://localhost:8080/gallery/album/?albumtitle=WallpapersHD& |
| 237 | +album=assets-library%3A%2F%2Fgroup%2F%3Fid%3DC44B3062-3A67-4BFA-AF16-04CC8DE2CD29&partial=0" class="interceptme"> |
| 238 | +</a><a href="http://192.168.2.106:8080/gallery/zip_album/WallpapersHD.zip?album=assets-library%3A%2F%2Fgroup%2F%3Fid%3DC44B3062- |
| 239 | +3A67-4BFA-AF16-04CC8DE2CD29" class="zipload" target="_blank"> |
| 240 | +<img src="localhost8080_files/download.png" class="ziploadimg" width="36px"> |
| 241 | + </a> |
| 242 | + <div class="ziploadtext"> |
| 243 | + </div> |
| 244 | + </div> |
| 245 | +</div> |
| 246 | + |
| 247 | + |
| 248 | +Note: The issue can be exploited by local privileged user accounts in the iOS photo app (default) or by a remote attacker via album to file sync. |
| 249 | +(interceptme!? ;) |
| 250 | + |
| 251 | + |
| 252 | +Reference(s): |
| 253 | +http://localhost:8080/gallery/album/?albumtitle=[ALBUM-NAME] |
| 254 | + |
| 255 | + |
| 256 | +Solution - Fix & Patch: |
| 257 | +======================= |
| 258 | +1.1 |
| 259 | +The command/path inject web vulnerabilities can be patched by a secure encode and parse of the devicename value. |
| 260 | +Parse the devicename in the login section and in the smallheader class to devicename. |
| 261 | + |
| 262 | +1.2 |
| 263 | +The persistent input validation web vulnerability can be patched by a secure parse and encode of the album name value. |
| 264 | +All GET requests with the value and the input by sync needs to be filtered by a secure mechanism. |
| 265 | + |
| 266 | + |
| 267 | +Security Risk: |
| 268 | +============== |
| 269 | +1.1 |
| 270 | +The security risk of the local command/path inject web vulnerabilities are estimated as high. |
| 271 | + |
| 272 | +1.2 |
| 273 | +The security risk of the persistent album name web vulnerability is estimated as medium(+). |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | +Credits & Authors: |
| 278 | +================== |
| 279 | +Vulnerability Laboratory [Research Team] - Benjamin Kunz Mejri (bkm@evolution-sec.com) [www.vulnerability-lab.com] |
| 280 | + |
| 281 | + |
| 282 | +Disclaimer & Information: |
| 283 | +========================= |
| 284 | +The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, |
| 285 | +either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability- |
| 286 | +Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business |
| 287 | +profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some |
| 288 | +states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation |
| 289 | +may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases |
| 290 | +or trade with fraud/stolen material. |
| 291 | + |
| 292 | +Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com |
| 293 | +Contact: admin@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com |
| 294 | +Section: www.vulnerability-lab.com/dev - forum.vulnerability-db.com - magazine.vulnerability-db.com |
| 295 | +Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab |
| 296 | +Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php |
| 297 | + |
| 298 | +Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. |
| 299 | +Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other |
| 300 | +media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and |
| 301 | +other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), |
| 302 | +modify, use or edit our material contact (admin@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission. |
| 303 | + |
| 304 | + Copyright ? 2013 | Vulnerability Laboratory [Evolution Security] |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | +-- |
| 309 | +VULNERABILITY LABORATORY RESEARCH TEAM |
| 310 | +DOMAIN: www.vulnerability-lab.com |
| 311 | +CONTACT: research@vulnerability-lab.com |
| 312 | + |
| 313 | + |
0 commit comments