Because I tripped over the missing SSL implementation with the lua.sockets I remembered some other concern I got recently about security within iPhone apps (and partly Corona because you have not keychain access supported within the sdk)
I want to share these before somebody falls in a that trap without jnowing!
It is really easy to modify stuff your app has in its documents folder!
You can use “iPhone Explorer” to get to all data of every app you have installed.
And this is “legal” and works without any jailbreak… You can access all apps resources easily and do stuff like ripping music or graphics…
But you also can write documents!
I used that to write back my game state from server data after I experienced a crash and lost my position. Inside the device there was no progress saved but on the server! Now I save more often and not only at system exit events…
So don’t expect that anything inside of “documents” is safe… if you have “save / restore game states” stuff … just be prepared for users to be able to modify that!
I could easily cheat any high-score for my application and already use checksummed files and may even change to encryption.
This may not be so important for the random app… for mine it would destroy a lot if the community of players would have to fight against cheating players!
To proof how dangerous this is… i at this moment have a score of 9999999 in a recently release corona game and could send it to the highscore server at once…
Conclusion?
Do yourself a favor and just don’t write simple load/save routines … but checksum or better encrypt your data!
BTW… You can do that on a locked phone! I just at this moment read my username from dropbox out of the dropbox app! But that may be only the case because that phone was previously connected to my computer. Dunno…
So what do you think about this? [import]uid: 6928 topic_id: 1350 reply_id: 301350[/import]