News for hackers. Stuff that matters.
Re:Handy Light: Tethering App Camouflaged as Flashlight by wallflower on Tuesday July 20, 2010 @09:48PM (#1534083)
Apps are sandboxed. They can send and receive data over http/https at will. Location sharing is much more audited in iOS 4. Your calendar data and some address book data is not well protected. Your pictures are only accessible through the camera roll UI; apps can't slurp them.
Re:Handy Light: Tethering App Camouflaged as Flashlight by ajg1977 on Tuesday July 20, 2010 @11:00PM (#1534199)
Contacts (and in iOS 4, calendar data) are completely unprotected. Just create an instance of an AddressBook and go to town. Your pictures are only accessible through the camera roll UI... IF the developer is only using public APIs.

Since we can assume that there are no public APIs that support tethering setup, we can also assume that it's still possible for them to be used in rogue apps and for developers to have access to private data.

Re:Handy Light: Tethering App Camouflaged as Flashlight by pieter on Wednesday July 21, 2010 @03:03AM (#1534573)
You can make a perfectly fine SOCKS proxy without using any unpublished API's. It's just listening on one socket and then opening a new one based on the request.
Re:Handy Light: Tethering App Camouflaged as Flashlight by bombs on Wednesday July 21, 2010 @03:05AM (#1534574)
It's possible to create a tethering app using public APIs. The APIs for HTTP/HTTPS connectivity and WiFi connectivity are public.

Apple rejects apps that use private APIs.

Re:Handy Light: Tethering App Camouflaged as Flashlight by tomjen3 on Wednesday July 21, 2010 @06:06AM (#1534778)
How does Apple actually scan for private APIs?

Couldn't you write the instructions necessary to make the private API call on the stack at runtime and then simply execute an assembly jump instruction?

Re:Handy Light: Tethering App Camouflaged as Flashlight by martingordon on Wednesday July 21, 2010 @10:34AM (#1535256)
iOS4 added the ability to access the Photo Library in a similar way to the Address Book. You are no longer limited to accessing one user-chosen photo at a time.

Even better/worse, you also have direct access to the camera(s), which means you don't need to prompt the user or display anything on-screen to capture photos or video.

I know Android clearly warns users about an app's capabilities. Does anyone know if that opt-in, or is it derived by some type of code analysis?

Re:Handy Light: Tethering App Camouflaged as Flashlight by vetinari on Wednesday July 21, 2010 @12:47PM (#1535710)
The required permissions are listed specificaly by app developer, so no, there is no code analysis.

However, during app runtime, only those listed capabalities are provided to app. If the app tried to use something else, it would get exception. Short of bug in the platform, there is no way getting around.

Re:Handy Light: Tethering App Camouflaged as Flashlight by maxjg on Tuesday July 20, 2010 @10:28PM (#1534151)
Your contacts are pretty much completely unprotected as well. As an iPhone developer myself, I don't think it's unreasonable to have the device ask for permission to use this data (in a similar manner as location data access is approved).